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

Unified Diff: components/exo/surface_unittest.cc

Issue 2098953003: Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed exo unittests Created 4 years, 6 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 | « components/exo/surface.cc ('k') | components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/surface_unittest.cc
diff --git a/components/exo/surface_unittest.cc b/components/exo/surface_unittest.cc
index 6c7ca96819c55eeafba52e841726ef75c13a6185..3e42b8c5fbde9283b94e5c3b923ee3b136d4a485 100644
--- a/components/exo/surface_unittest.cc
+++ b/components/exo/surface_unittest.cc
@@ -191,9 +191,9 @@ const cc::DelegatedFrameData* GetFrameFromSurface(Surface* surface) {
cc::SurfaceId surface_id = surface->surface_id();
cc::SurfaceManager* surface_manager =
aura::Env::GetInstance()->context_factory()->GetSurfaceManager();
- const cc::CompositorFrame* frame =
+ const cc::CompositorFrame& frame =
surface_manager->GetSurfaceForId(surface_id)->GetEligibleFrame();
- return frame->delegated_frame_data.get();
+ return frame.delegated_frame_data.get();
}
TEST_F(SurfaceTest, SetBlendMode) {
« no previous file with comments | « components/exo/surface.cc ('k') | components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698