Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: cc/test/fake_compositor_frame_sink.h

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/texture_layer_impl_unittest.cc ('k') | cc/test/gpu_rasterization_enabled_settings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_compositor_frame_sink.h
diff --git a/cc/test/fake_compositor_frame_sink.h b/cc/test/fake_compositor_frame_sink.h
index 27a964eaf201ba5c186ac121d2c773335278a4c6..c404d58b301f0485e572b6ec496452fd90f4fe05 100644
--- a/cc/test/fake_compositor_frame_sink.h
+++ b/cc/test/fake_compositor_frame_sink.h
@@ -46,6 +46,15 @@ class FakeCompositorFrameSink : public CompositorFrameSink {
TestContextProvider::CreateWorker()));
}
+ static std::unique_ptr<FakeCompositorFrameSink>
+ Create3dForGpuRasterization() {
+ auto context = TestWebGraphicsContext3D::Create();
+ context->set_gpu_rasterization(true);
+ auto context_provider = TestContextProvider::Create(std::move(context));
+ return base::WrapUnique(new FakeCompositorFrameSink(
+ std::move(context_provider), TestContextProvider::CreateWorker()));
+ }
+
static std::unique_ptr<FakeCompositorFrameSink> CreateSoftware() {
return base::WrapUnique(new FakeCompositorFrameSink(nullptr, nullptr));
}
« no previous file with comments | « cc/layers/texture_layer_impl_unittest.cc ('k') | cc/test/gpu_rasterization_enabled_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698