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

Unified Diff: cc/test/fake_compositor_frame_sink.cc

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)
Patch Set: rebase Created 4 years, 2 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/test/fake_compositor_frame_sink.h ('k') | cc/test/fake_layer_tree_host.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.cc
diff --git a/cc/test/fake_compositor_frame_sink.cc b/cc/test/fake_compositor_frame_sink.cc
index aa01fb871f7258602cc390c1bfe8e252eeb90e88..64ab5e35f37426658c815307992f03e7bce5603d 100644
--- a/cc/test/fake_compositor_frame_sink.cc
+++ b/cc/test/fake_compositor_frame_sink.cc
@@ -17,8 +17,15 @@ FakeCompositorFrameSink::FakeCompositorFrameSink(
scoped_refptr<ContextProvider> context_provider,
scoped_refptr<ContextProvider> worker_context_provider)
: CompositorFrameSink(std::move(context_provider),
- std::move(worker_context_provider)),
- weak_ptr_factory_(this) {}
+ std::move(worker_context_provider),
+ nullptr,
+ nullptr),
+ weak_ptr_factory_(this) {
+ gpu_memory_buffer_manager_ =
+ context_provider_ ? &test_gpu_memory_buffer_manager_ : nullptr;
+ shared_bitmap_manager_ =
+ context_provider_ ? nullptr : &test_shared_bitmap_manager_;
+}
FakeCompositorFrameSink::~FakeCompositorFrameSink() = default;
« no previous file with comments | « cc/test/fake_compositor_frame_sink.h ('k') | cc/test/fake_layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698