mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2026-05-30 10:56:29 +03:00
Import chromium-68.0.3440.106
This commit is contained in:
291
gpu/command_buffer/client/BUILD.gn
Normal file
291
gpu/command_buffer/client/BUILD.gn
Normal file
@@ -0,0 +1,291 @@
|
||||
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
# The files here go into the "gpu" component in a component build (with
|
||||
# "command_buffer_client" and "gles2_cmd_helper" just forwarding) and goes into
|
||||
# separate static libraries in non-component build.
|
||||
group("client") {
|
||||
if (is_component_build) {
|
||||
public_deps = [
|
||||
"//gpu",
|
||||
]
|
||||
} else {
|
||||
public_deps = [
|
||||
":client_sources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
group("gles2_cmd_helper") {
|
||||
if (is_component_build) {
|
||||
public_deps = [
|
||||
"//gpu:gles2",
|
||||
]
|
||||
} else {
|
||||
public_deps = [
|
||||
":gles2_cmd_helper_sources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
group("raster") {
|
||||
if (is_component_build) {
|
||||
public_deps = [
|
||||
"//gpu:raster",
|
||||
]
|
||||
} else {
|
||||
public_deps = [
|
||||
":raster_sources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
source_set("client_sources") {
|
||||
# External code should depend on this via //gpu/client above rather than
|
||||
# depending on this directly or the component build will break.
|
||||
visibility = [ "//gpu/*" ]
|
||||
|
||||
sources = [
|
||||
"client_discardable_manager.cc",
|
||||
"client_discardable_manager.h",
|
||||
"client_discardable_texture_manager.cc",
|
||||
"client_discardable_texture_manager.h",
|
||||
"cmd_buffer_helper.cc",
|
||||
"cmd_buffer_helper.h",
|
||||
"fenced_allocator.cc",
|
||||
"fenced_allocator.h",
|
||||
"gpu_control.h",
|
||||
"gpu_memory_buffer_manager.cc",
|
||||
"gpu_memory_buffer_manager.h",
|
||||
"mapped_memory.cc",
|
||||
"mapped_memory.h",
|
||||
"ring_buffer.cc",
|
||||
"ring_buffer.h",
|
||||
"transfer_buffer.cc",
|
||||
"transfer_buffer.h",
|
||||
]
|
||||
|
||||
configs += [ "//gpu:gpu_implementation" ]
|
||||
|
||||
all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
|
||||
|
||||
public_deps = [
|
||||
"//base",
|
||||
]
|
||||
deps = [
|
||||
"//gpu/command_buffer/common:common_sources",
|
||||
"//gpu/ipc/common:surface_handle_type",
|
||||
"//ui/gfx:memory_buffer",
|
||||
"//ui/gfx/geometry",
|
||||
]
|
||||
}
|
||||
|
||||
source_set("gles2_cmd_helper_sources") {
|
||||
visibility = [ "//gpu/*" ]
|
||||
sources = [
|
||||
"gles2_cmd_helper.cc",
|
||||
"gles2_cmd_helper.h",
|
||||
"gles2_cmd_helper_autogen.h",
|
||||
]
|
||||
|
||||
configs += [ "//gpu:gpu_gles2_implementation" ]
|
||||
|
||||
deps = [
|
||||
":client",
|
||||
"//base",
|
||||
"//gpu/command_buffer/common",
|
||||
"//gpu/command_buffer/common:gles2_sources",
|
||||
]
|
||||
}
|
||||
|
||||
gles2_c_lib_source_files = [
|
||||
"gles2_c_lib.cc",
|
||||
"gles2_c_lib_autogen.h",
|
||||
"gles2_c_lib_export.h",
|
||||
"gles2_lib.cc",
|
||||
"gles2_lib.h",
|
||||
]
|
||||
|
||||
gles2_implementation_source_files = [
|
||||
"buffer_tracker.cc",
|
||||
"buffer_tracker.h",
|
||||
"client_context_state.cc",
|
||||
"client_context_state.h",
|
||||
"client_context_state_autogen.h",
|
||||
"client_context_state_impl_autogen.h",
|
||||
"client_transfer_cache.cc",
|
||||
"client_transfer_cache.h",
|
||||
"gles2_impl_export.h",
|
||||
"gles2_implementation.cc",
|
||||
"gles2_implementation.h",
|
||||
"gles2_implementation_autogen.h",
|
||||
"gles2_implementation_impl_autogen.h",
|
||||
"gles2_trace_implementation.cc",
|
||||
"gles2_trace_implementation.h",
|
||||
"gles2_trace_implementation_autogen.h",
|
||||
"gles2_trace_implementation_impl_autogen.h",
|
||||
"gpu_switches.cc",
|
||||
"gpu_switches.h",
|
||||
"implementation_base.cc",
|
||||
"implementation_base.h",
|
||||
"logging.cc",
|
||||
"logging.h",
|
||||
"program_info_manager.cc",
|
||||
"program_info_manager.h",
|
||||
"query_tracker.cc",
|
||||
"query_tracker.h",
|
||||
"share_group.cc",
|
||||
"share_group.h",
|
||||
"vertex_array_object_manager.cc",
|
||||
"vertex_array_object_manager.h",
|
||||
]
|
||||
|
||||
# Provides GLES2 interface, but does not cause any implementation to be linked
|
||||
# in. Useful when a target uses the interface, but permits its users to choose
|
||||
# an implementation.
|
||||
source_set("gles2_interface") {
|
||||
sources = [
|
||||
"gles2_interface.h",
|
||||
]
|
||||
public_configs = [ "//third_party/khronos:khronos_headers" ]
|
||||
deps = [
|
||||
"//base",
|
||||
]
|
||||
}
|
||||
|
||||
source_set("raster_interface") {
|
||||
sources = [
|
||||
"raster_interface.h",
|
||||
]
|
||||
public_configs = [ "//third_party/khronos:khronos_headers" ]
|
||||
deps = [
|
||||
"//base",
|
||||
"//components/viz/common:resource_format",
|
||||
"//ui/gfx:buffer_types",
|
||||
]
|
||||
}
|
||||
|
||||
# Library emulates GLES2 using command_buffers.
|
||||
component("gles2_implementation") {
|
||||
sources = gles2_implementation_source_files
|
||||
|
||||
defines = [ "GLES2_IMPL_IMPLEMENTATION" ]
|
||||
all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
|
||||
|
||||
deps = [
|
||||
":client",
|
||||
":gles2_cmd_helper",
|
||||
":gles2_interface",
|
||||
"//base",
|
||||
"//gpu/command_buffer/common",
|
||||
"//gpu/command_buffer/common:gles2",
|
||||
"//gpu/command_buffer/common:gles2_utils",
|
||||
"//ui/gfx/geometry",
|
||||
]
|
||||
|
||||
if (!is_nacl) {
|
||||
deps += [
|
||||
"//components/viz/common:resource_format",
|
||||
"//ui/gfx:color_space",
|
||||
"//ui/gfx/ipc/color",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
source_set("raster_sources") {
|
||||
# External code should depend on this via //gpu:raster above rather than
|
||||
# depending on this directly or the component build will break.
|
||||
visibility = [ "//gpu/*" ]
|
||||
all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
|
||||
|
||||
configs += [ "//gpu:raster_implementation" ]
|
||||
deps = [
|
||||
":client",
|
||||
":gles2_implementation",
|
||||
":gles2_interface",
|
||||
":raster_interface",
|
||||
"//base",
|
||||
"//cc/paint",
|
||||
"//components/viz/common:resource_format",
|
||||
"//gpu/command_buffer/common",
|
||||
"//gpu/command_buffer/common:gles2",
|
||||
"//gpu/command_buffer/common:gles2_utils",
|
||||
"//gpu/command_buffer/common:raster",
|
||||
"//ui/gfx:color_space",
|
||||
"//ui/gfx/geometry",
|
||||
"//ui/gfx/ipc/color",
|
||||
]
|
||||
sources = [
|
||||
"client_font_manager.cc",
|
||||
"client_font_manager.h",
|
||||
"raster_cmd_helper.cc",
|
||||
"raster_cmd_helper.h",
|
||||
"raster_cmd_helper_autogen.h",
|
||||
"raster_implementation.cc",
|
||||
"raster_implementation.h",
|
||||
"raster_implementation_autogen.h",
|
||||
"raster_implementation_gles.cc",
|
||||
"raster_implementation_gles.h",
|
||||
"raster_implementation_impl_autogen.h",
|
||||
]
|
||||
}
|
||||
|
||||
# Library emulates GLES2 using command_buffers.
|
||||
component("gles2_implementation_no_check") {
|
||||
sources = gles2_implementation_source_files
|
||||
|
||||
defines = [
|
||||
"GLES2_IMPL_IMPLEMENTATION",
|
||||
"GLES2_CONFORMANCE_TESTS=1",
|
||||
]
|
||||
|
||||
deps = [
|
||||
":client",
|
||||
":gles2_cmd_helper",
|
||||
":gles2_interface",
|
||||
"//base",
|
||||
"//gpu/command_buffer/common",
|
||||
"//gpu/command_buffer/common:gles2",
|
||||
"//gpu/command_buffer/common:gles2_utils",
|
||||
"//ui/gfx",
|
||||
"//ui/gfx/geometry",
|
||||
]
|
||||
|
||||
if (!is_nacl) {
|
||||
deps += [
|
||||
"//cc/paint",
|
||||
"//ui/gfx:color_space",
|
||||
"//ui/gfx/ipc/color",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
component("gles2_c_lib") {
|
||||
sources = gles2_c_lib_source_files
|
||||
defines = [ "GLES2_C_LIB_IMPLEMENTATION" ]
|
||||
|
||||
deps = [
|
||||
":gles2_interface",
|
||||
"//base",
|
||||
"//base/third_party/dynamic_annotations",
|
||||
"//gpu/command_buffer/common",
|
||||
]
|
||||
}
|
||||
|
||||
# Same as gles2_c_lib except with no parameter checking. Required for
|
||||
# OpenGL ES 2.0 conformance tests.
|
||||
component("gles2_c_lib_nocheck") {
|
||||
sources = gles2_c_lib_source_files
|
||||
|
||||
defines = [
|
||||
"GLES2_C_LIB_IMPLEMENTATION",
|
||||
"GLES2_CONFORMANCE_TESTS=1",
|
||||
]
|
||||
deps = [
|
||||
":gles2_interface",
|
||||
"//base",
|
||||
"//base/third_party/dynamic_annotations",
|
||||
"//gpu/command_buffer/common",
|
||||
]
|
||||
}
|
||||
168
gpu/command_buffer/common/BUILD.gn
Normal file
168
gpu/command_buffer/common/BUILD.gn
Normal file
@@ -0,0 +1,168 @@
|
||||
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
# The files here go into the "gpu" component in a component build (with
|
||||
# "command_buffer_common" just forwarding) and goes into a static library in
|
||||
# non-component build. This needs to match the GYP build which was likely an
|
||||
# attempt to make larger components to help with loading.
|
||||
|
||||
group("common") {
|
||||
if (is_component_build) {
|
||||
public_deps = [
|
||||
"//gpu",
|
||||
]
|
||||
} else {
|
||||
public_deps = [
|
||||
":common_sources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
group("gles2") {
|
||||
if (is_component_build) {
|
||||
public_deps = [
|
||||
"//gpu:gles2",
|
||||
]
|
||||
} else {
|
||||
public_deps = [
|
||||
":gles2_sources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
group("raster") {
|
||||
if (is_component_build) {
|
||||
public_deps = [
|
||||
"//gpu:gles2",
|
||||
]
|
||||
} else {
|
||||
public_deps = [
|
||||
":raster_sources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
source_set("common_sources") {
|
||||
visibility = [ "//gpu/*" ]
|
||||
|
||||
sources = [
|
||||
"activity_flags.cc",
|
||||
"activity_flags.h",
|
||||
"bitfield_helpers.h",
|
||||
"buffer.cc",
|
||||
"buffer.h",
|
||||
"capabilities.cc",
|
||||
"capabilities.h",
|
||||
"cmd_buffer_common.cc",
|
||||
"cmd_buffer_common.h",
|
||||
"command_buffer.h",
|
||||
"command_buffer_id.h",
|
||||
"common_cmd_format.h",
|
||||
"constants.h",
|
||||
"context_creation_attribs.cc",
|
||||
"context_creation_attribs.h",
|
||||
"context_result.h",
|
||||
"debug_marker_manager.cc",
|
||||
"debug_marker_manager.h",
|
||||
"discardable_handle.cc",
|
||||
"discardable_handle.h",
|
||||
"gl2_types.h",
|
||||
"gpu_memory_buffer_support.cc",
|
||||
"gpu_memory_buffer_support.h",
|
||||
"id_allocator.cc",
|
||||
"id_allocator.h",
|
||||
"id_type.h",
|
||||
"mailbox.cc",
|
||||
"mailbox.h",
|
||||
"mailbox_holder.cc",
|
||||
"mailbox_holder.h",
|
||||
"scheduling_priority.cc",
|
||||
"scheduling_priority.h",
|
||||
"swap_buffers_complete_params.cc",
|
||||
"swap_buffers_complete_params.h",
|
||||
"swap_buffers_flags.h",
|
||||
"sync_token.cc",
|
||||
"sync_token.h",
|
||||
"texture_in_use_response.h",
|
||||
"thread_local.h",
|
||||
"time.h",
|
||||
]
|
||||
|
||||
configs += [ "//gpu:gpu_implementation" ]
|
||||
|
||||
public_deps = [
|
||||
"//mojo/public/cpp/system",
|
||||
"//ui/gfx:memory_buffer",
|
||||
"//ui/gfx/geometry",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//base",
|
||||
]
|
||||
|
||||
# TODO(piman): needed for gpu_memory_buffer_support.cc. Split common vs gles2
|
||||
# specifics.
|
||||
configs += [ "//third_party/khronos:khronos_headers" ]
|
||||
}
|
||||
|
||||
source_set("gles2_sources") {
|
||||
visibility = [ "//gpu/*" ]
|
||||
|
||||
sources = [
|
||||
"gles2_cmd_format.cc",
|
||||
"gles2_cmd_format.h",
|
||||
"gles2_cmd_format_autogen.h",
|
||||
"gles2_cmd_ids.h",
|
||||
"gles2_cmd_ids_autogen.h",
|
||||
]
|
||||
|
||||
configs += [ "//gpu:gpu_gles2_implementation" ]
|
||||
|
||||
deps = [
|
||||
":gles2_utils",
|
||||
"//base",
|
||||
]
|
||||
public_deps = [
|
||||
":common",
|
||||
]
|
||||
}
|
||||
|
||||
source_set("raster_sources") {
|
||||
visibility = [ "//gpu/*" ]
|
||||
|
||||
sources = [
|
||||
"raster_cmd_format.cc",
|
||||
"raster_cmd_format.h",
|
||||
"raster_cmd_format_autogen.h",
|
||||
"raster_cmd_ids.h",
|
||||
"raster_cmd_ids_autogen.h",
|
||||
]
|
||||
|
||||
configs += [ "//gpu:raster_implementation" ]
|
||||
|
||||
deps = [
|
||||
":gles2_utils",
|
||||
"//base",
|
||||
]
|
||||
public_deps = [
|
||||
":common",
|
||||
"//components/viz/common:resource_format",
|
||||
]
|
||||
}
|
||||
|
||||
component("gles2_utils") {
|
||||
sources = [
|
||||
"gles2_cmd_utils.cc",
|
||||
"gles2_cmd_utils.h",
|
||||
"gles2_utils_export.h",
|
||||
]
|
||||
|
||||
defines = [ "GLES2_UTILS_IMPLEMENTATION" ]
|
||||
|
||||
deps = [
|
||||
"//base",
|
||||
]
|
||||
|
||||
all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
|
||||
}
|
||||
281
gpu/command_buffer/service/BUILD.gn
Normal file
281
gpu/command_buffer/service/BUILD.gn
Normal file
@@ -0,0 +1,281 @@
|
||||
# Copyright 2014 The Chromium Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
import("//build/config/ui.gni")
|
||||
import("//third_party/protobuf/proto_library.gni")
|
||||
|
||||
group("service") {
|
||||
if (is_component_build) {
|
||||
public_deps = [
|
||||
"//gpu",
|
||||
]
|
||||
} else {
|
||||
public_deps = [
|
||||
":service_sources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
group("gles2") {
|
||||
if (is_component_build) {
|
||||
public_deps = [
|
||||
"//gpu:gles2",
|
||||
]
|
||||
} else {
|
||||
public_deps = [
|
||||
":gles2_sources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
if (is_component_build) {
|
||||
link_target_type = "source_set"
|
||||
} else {
|
||||
link_target_type = "static_library"
|
||||
}
|
||||
target(link_target_type, "service_sources") {
|
||||
# External code should depend on this via //gpu/command_buffer/service above
|
||||
# rather than depending on this directly or the component build will break.
|
||||
visibility = [ "//gpu/*" ]
|
||||
|
||||
sources = [
|
||||
"async_api_interface.h",
|
||||
"command_buffer_direct.cc",
|
||||
"command_buffer_direct.h",
|
||||
"command_buffer_service.cc",
|
||||
"command_buffer_service.h",
|
||||
"common_decoder.cc",
|
||||
"common_decoder.h",
|
||||
"decoder_client.h",
|
||||
"gpu_preferences.cc",
|
||||
"gpu_preferences.h",
|
||||
"gpu_switches.cc",
|
||||
"gpu_switches.h",
|
||||
"image_factory.cc",
|
||||
"image_factory.h",
|
||||
"image_manager.cc",
|
||||
"image_manager.h",
|
||||
"mailbox_manager.h",
|
||||
"memory_tracking.h",
|
||||
"scheduler.cc",
|
||||
"scheduler.h",
|
||||
"sequence_id.h",
|
||||
"sync_point_manager.cc",
|
||||
"sync_point_manager.h",
|
||||
"texture_base.cc",
|
||||
"texture_base.h",
|
||||
"transfer_buffer_manager.cc",
|
||||
"transfer_buffer_manager.h",
|
||||
]
|
||||
|
||||
configs += [
|
||||
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
|
||||
"//build/config/compiler:no_size_t_to_int_warning",
|
||||
"//build/config:precompiled_headers",
|
||||
"//gpu:gpu_implementation",
|
||||
"//third_party/khronos:khronos_headers",
|
||||
]
|
||||
|
||||
public_deps = [
|
||||
"//gpu/command_buffer/common:common_sources",
|
||||
]
|
||||
deps = [
|
||||
"//base",
|
||||
"//base/third_party/dynamic_annotations",
|
||||
"//gpu/command_buffer/client:client_sources",
|
||||
"//gpu/config:config_sources",
|
||||
"//gpu/ipc/common:surface_handle_type",
|
||||
"//media:media_buildflags",
|
||||
"//ui/gfx",
|
||||
"//ui/gfx/geometry",
|
||||
"//ui/gl",
|
||||
]
|
||||
|
||||
if (is_android && !is_debug) {
|
||||
# On Android optimize more since this component can be a bottleneck.
|
||||
configs -= [ "//build/config/compiler:default_optimization" ]
|
||||
configs += [ "//build/config/compiler:optimize_max" ]
|
||||
}
|
||||
}
|
||||
|
||||
target(link_target_type, "gles2_sources") {
|
||||
# External code should depend on this via //gpu/command_buffer/service:gles2
|
||||
# above rather than depending on this directly or the component build will
|
||||
# break.
|
||||
visibility = [ "//gpu/*" ]
|
||||
|
||||
sources = [
|
||||
"buffer_manager.cc",
|
||||
"buffer_manager.h",
|
||||
"client_service_map.h",
|
||||
"context_group.cc",
|
||||
"context_group.h",
|
||||
"context_state.cc",
|
||||
"context_state.h",
|
||||
"context_state_autogen.h",
|
||||
"context_state_impl_autogen.h",
|
||||
"decoder_context.h",
|
||||
"error_state.cc",
|
||||
"error_state.h",
|
||||
"feature_info.cc",
|
||||
"feature_info.h",
|
||||
"framebuffer_completeness_cache.cc",
|
||||
"framebuffer_completeness_cache.h",
|
||||
"framebuffer_manager.cc",
|
||||
"framebuffer_manager.h",
|
||||
"gl_context_virtual.cc",
|
||||
"gl_context_virtual.h",
|
||||
"gl_state_restorer_impl.cc",
|
||||
"gl_state_restorer_impl.h",
|
||||
"gl_utils.cc",
|
||||
"gl_utils.h",
|
||||
"gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc",
|
||||
"gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h",
|
||||
"gles2_cmd_clear_framebuffer.cc",
|
||||
"gles2_cmd_clear_framebuffer.h",
|
||||
"gles2_cmd_copy_tex_image.cc",
|
||||
"gles2_cmd_copy_tex_image.h",
|
||||
"gles2_cmd_copy_texture_chromium.cc",
|
||||
"gles2_cmd_copy_texture_chromium.h",
|
||||
"gles2_cmd_decoder.cc",
|
||||
"gles2_cmd_decoder.h",
|
||||
"gles2_cmd_decoder_autogen.h",
|
||||
"gles2_cmd_decoder_passthrough.cc",
|
||||
"gles2_cmd_decoder_passthrough.h",
|
||||
"gles2_cmd_decoder_passthrough_doer_prototypes.h",
|
||||
"gles2_cmd_decoder_passthrough_doers.cc",
|
||||
"gles2_cmd_decoder_passthrough_handlers.cc",
|
||||
"gles2_cmd_decoder_passthrough_handlers_autogen.cc",
|
||||
"gles2_cmd_srgb_converter.cc",
|
||||
"gles2_cmd_srgb_converter.h",
|
||||
"gles2_cmd_validation.cc",
|
||||
"gles2_cmd_validation.h",
|
||||
"gles2_cmd_validation_autogen.h",
|
||||
"gles2_cmd_validation_implementation_autogen.h",
|
||||
"gles2_query_manager.cc",
|
||||
"gles2_query_manager.h",
|
||||
"gpu_fence_manager.cc",
|
||||
"gpu_fence_manager.h",
|
||||
"gpu_state_tracer.cc",
|
||||
"gpu_state_tracer.h",
|
||||
"gpu_tracer.cc",
|
||||
"gpu_tracer.h",
|
||||
"id_manager.cc",
|
||||
"id_manager.h",
|
||||
"indexed_buffer_binding_host.cc",
|
||||
"indexed_buffer_binding_host.h",
|
||||
"logger.cc",
|
||||
"logger.h",
|
||||
"mailbox_manager_factory.cc",
|
||||
"mailbox_manager_factory.h",
|
||||
"mailbox_manager_impl.cc",
|
||||
"mailbox_manager_impl.h",
|
||||
"mailbox_manager_sync.cc",
|
||||
"mailbox_manager_sync.h",
|
||||
"memory_program_cache.cc",
|
||||
"memory_program_cache.h",
|
||||
"passthrough_program_cache.cc",
|
||||
"passthrough_program_cache.h",
|
||||
"path_manager.cc",
|
||||
"path_manager.h",
|
||||
"program_cache.cc",
|
||||
"program_cache.h",
|
||||
"program_manager.cc",
|
||||
"program_manager.h",
|
||||
"query_manager.cc",
|
||||
"query_manager.h",
|
||||
"raster_cmd_validation.cc",
|
||||
"raster_cmd_validation.h",
|
||||
"raster_cmd_validation_autogen.h",
|
||||
"raster_cmd_validation_implementation_autogen.h",
|
||||
"raster_decoder.cc",
|
||||
"raster_decoder.h",
|
||||
"renderbuffer_manager.cc",
|
||||
"renderbuffer_manager.h",
|
||||
"sampler_manager.cc",
|
||||
"sampler_manager.h",
|
||||
"service_discardable_manager.cc",
|
||||
"service_discardable_manager.h",
|
||||
"service_font_manager.cc",
|
||||
"service_font_manager.h",
|
||||
"service_transfer_cache.cc",
|
||||
"service_transfer_cache.h",
|
||||
"service_utils.cc",
|
||||
"service_utils.h",
|
||||
"shader_manager.cc",
|
||||
"shader_manager.h",
|
||||
"shader_translator.cc",
|
||||
"shader_translator.h",
|
||||
"shader_translator_cache.cc",
|
||||
"shader_translator_cache.h",
|
||||
"texture_definition.cc",
|
||||
"texture_definition.h",
|
||||
"texture_manager.cc",
|
||||
"texture_manager.h",
|
||||
"transform_feedback_manager.cc",
|
||||
"transform_feedback_manager.h",
|
||||
"vertex_array_manager.cc",
|
||||
"vertex_array_manager.h",
|
||||
"vertex_attrib_manager.cc",
|
||||
"vertex_attrib_manager.h",
|
||||
]
|
||||
|
||||
configs += [
|
||||
"//build/config:precompiled_headers",
|
||||
"//gpu:gpu_gles2_implementation",
|
||||
"//third_party/khronos:khronos_headers",
|
||||
]
|
||||
|
||||
# Prefer mesa GL headers to system headers, which cause problems on Win.
|
||||
include_dirs = [ "//third_party/mesa/src/include" ]
|
||||
|
||||
public_deps = [
|
||||
"//gpu/command_buffer/common",
|
||||
"//gpu/command_buffer/common:gles2_sources",
|
||||
"//gpu/command_buffer/common:raster_sources",
|
||||
]
|
||||
deps = [
|
||||
":disk_cache_proto",
|
||||
":service",
|
||||
"//base",
|
||||
"//base/third_party/dynamic_annotations",
|
||||
"//cc/paint",
|
||||
"//gpu/command_buffer/client",
|
||||
"//gpu/command_buffer/common:gles2_utils",
|
||||
"//gpu/config",
|
||||
"//gpu/ipc/common:surface_handle_type",
|
||||
"//third_party/angle:angle_image_util",
|
||||
"//third_party/angle:commit_id",
|
||||
"//third_party/angle:translator",
|
||||
"//third_party/protobuf:protobuf_lite",
|
||||
"//third_party/re2",
|
||||
"//third_party/smhasher:cityhash",
|
||||
"//third_party/zlib",
|
||||
"//ui/gfx",
|
||||
"//ui/gfx/geometry",
|
||||
"//ui/gfx/ipc/color",
|
||||
"//ui/gl",
|
||||
"//ui/gl/init",
|
||||
]
|
||||
|
||||
if (is_mac) {
|
||||
# Required by gles2_cmd_decoder.cc on Mac.
|
||||
libs = [
|
||||
"IOSurface.framework",
|
||||
"OpenGL.framework",
|
||||
]
|
||||
}
|
||||
|
||||
if (is_android && !is_debug) {
|
||||
# On Android optimize more since this component can be a bottleneck.
|
||||
configs -= [ "//build/config/compiler:default_optimization" ]
|
||||
configs += [ "//build/config/compiler:optimize_max" ]
|
||||
}
|
||||
}
|
||||
|
||||
proto_library("disk_cache_proto") {
|
||||
sources = [
|
||||
"disk_cache_proto.proto",
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user