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

Side by Side Diff: components/exo/compositor_frame_sink.cc

Issue 2701663003: CompositorFrameSinkSupportClient::WillDraw needs to take in arguments (Closed)
Patch Set: c 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 unified diff | Download patch
« no previous file with comments | « components/exo/compositor_frame_sink.h ('k') | components/exo/compositor_frame_sink_holder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/exo/compositor_frame_sink.h" 5 #include "components/exo/compositor_frame_sink.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/surfaces/surface.h" 8 #include "cc/surfaces/surface.h"
9 #include "cc/surfaces/surface_manager.h" 9 #include "cc/surfaces/surface_manager.h"
10 #include "components/exo/compositor_frame_sink_holder.h" 10 #include "components/exo/compositor_frame_sink_holder.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 void CompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) { 64 void CompositorFrameSink::OnBeginFrame(const cc::BeginFrameArgs& args) {
65 client_->OnBeginFrame(args); 65 client_->OnBeginFrame(args);
66 } 66 }
67 67
68 void CompositorFrameSink::ReclaimResources( 68 void CompositorFrameSink::ReclaimResources(
69 const cc::ReturnedResourceArray& resources) { 69 const cc::ReturnedResourceArray& resources) {
70 client_->ReclaimResources(resources); 70 client_->ReclaimResources(resources);
71 } 71 }
72 72
73 void CompositorFrameSink::WillDrawSurface() { 73 void CompositorFrameSink::WillDrawSurface(
74 client_->WillDrawSurface(); 74 const cc::LocalSurfaceId& local_surface_id,
75 const gfx::Rect& damage_rect) {
76 client_->WillDrawSurface(local_surface_id, damage_rect);
75 } 77 }
76 78
77 } // namespace exo 79 } // namespace exo
OLDNEW
« no previous file with comments | « components/exo/compositor_frame_sink.h ('k') | components/exo/compositor_frame_sink_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698