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

Unified Diff: components/exo/buffer_unittest.cc

Issue 2626293005: exo::CompositorFrameSink uses CompositorFrameSinkHolder* instead of mojo interface pointer (Closed)
Patch Set: Addressed nit Created 3 years, 11 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 | « no previous file | components/exo/compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/buffer_unittest.cc
diff --git a/components/exo/buffer_unittest.cc b/components/exo/buffer_unittest.cc
index 8572caa1d6b9ff0b375e4fb634bcf452459ad222..4f34c960011cd90416dae51ef7745517ec24c8af 100644
--- a/components/exo/buffer_unittest.cc
+++ b/components/exo/buffer_unittest.cc
@@ -32,8 +32,12 @@ TEST_F(BufferTest, ReleaseCallback) {
std::unique_ptr<Buffer> buffer(
new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(buffer_size)));
std::unique_ptr<Surface> surface(new Surface);
+ const cc::FrameSinkId arbitrary_frame_sink_id(1, 1);
scoped_refptr<CompositorFrameSinkHolder> compositor_frame_sink_holder =
- new CompositorFrameSinkHolder(surface.get(), nullptr, nullptr);
+ new CompositorFrameSinkHolder(surface.get(), arbitrary_frame_sink_id,
+ aura::Env::GetInstance()
+ ->context_factory_private()
+ ->GetSurfaceManager());
// Set the release callback.
int release_call_count = 0;
@@ -68,9 +72,13 @@ TEST_F(BufferTest, IsLost) {
gfx::Size buffer_size(256, 256);
std::unique_ptr<Buffer> buffer(
new Buffer(exo_test_helper()->CreateGpuMemoryBuffer(buffer_size)));
+ const cc::FrameSinkId arbitrary_frame_sink_id(1, 1);
std::unique_ptr<Surface> surface(new Surface);
scoped_refptr<CompositorFrameSinkHolder> compositor_frame_sink_holder =
- new CompositorFrameSinkHolder(surface.get(), nullptr, nullptr);
+ new CompositorFrameSinkHolder(surface.get(), arbitrary_frame_sink_id,
+ aura::Env::GetInstance()
+ ->context_factory_private()
+ ->GetSurfaceManager());
cc::ResourceId resource_id = 0;
buffer->OnAttach();
« no previous file with comments | « no previous file | components/exo/compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698