oop: Create a RasterInterface, and use it for Compositor Worker contexts.
This CL enables RasterInterface for Compositor Worker contexts in
content/renderer and content/browser.
RasterInterface provides a subset of GLES2Interface APIs required for
OOP Rasterization. This will gradually diverge away from GLES2.
The initial change adds a client-side implementation of
RasterInterface on top of GLES2Interface.
Design Doc: https://goo.gl/Q6E1ZC
BUG=757607
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Iaefd861f0c51b9995ad27eb94de2068d0f9dab22
Reviewed-on: https://chromium-review.googlesource.com/778242
Commit-Queue: Victor Miura <[email protected]>
Reviewed-by: Sadrul Chowdhury <[email protected]>
Reviewed-by: danakj <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: vmpstr <[email protected]>
Reviewed-by: Bo <[email protected]>
Reviewed-by: Eric Karl <[email protected]>
Reviewed-by: Antoine Labour <[email protected]>
Cr-Commit-Position: refs/heads/master@{#523700}
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn
index e18d0b5..9cb00be 100644
--- a/gpu/BUILD.gn
+++ b/gpu/BUILD.gn
@@ -244,6 +244,7 @@
"command_buffer/client/mapped_memory_unittest.cc",
"command_buffer/client/program_info_manager_unittest.cc",
"command_buffer/client/query_tracker_unittest.cc",
+ "command_buffer/client/raster_implementation_gles_unittest.cc",
"command_buffer/client/ring_buffer_test.cc",
"command_buffer/client/transfer_buffer_unittest.cc",
"command_buffer/client/vertex_array_object_manager_unittest.cc",
@@ -384,6 +385,7 @@
"//base/test:test_support",
"//base/third_party/dynamic_annotations",
"//cc/paint",
+ "//components/viz/common:resource_format",
"//gpu/command_buffer/client:gles2_c_lib",
"//gpu/command_buffer/client:gles2_implementation",
"//gpu/command_buffer/common:gles2_utils",