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

Side by Side Diff: android_webview/browser/surfaces_instance.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 | « android_webview/browser/surfaces_instance.h ('k') | cc/ipc/mojo_compositor_frame_sink.mojom » ('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 "android_webview/browser/surfaces_instance.h" 5 #include "android_webview/browser/surfaces_instance.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "android_webview/browser/aw_gl_surface.h" 10 #include "android_webview/browser/aw_gl_surface.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void SurfacesInstance::SetEmptyRootFrame() { 161 void SurfacesInstance::SetEmptyRootFrame() {
162 cc::CompositorFrame empty_frame; 162 cc::CompositorFrame empty_frame;
163 empty_frame.metadata.referenced_surfaces = child_ids_; 163 empty_frame.metadata.referenced_surfaces = child_ids_;
164 support_->SubmitCompositorFrame(root_id_, std::move(empty_frame)); 164 support_->SubmitCompositorFrame(root_id_, std::move(empty_frame));
165 } 165 }
166 166
167 void SurfacesInstance::DidReceiveCompositorFrameAck() {} 167 void SurfacesInstance::DidReceiveCompositorFrameAck() {}
168 168
169 void SurfacesInstance::OnBeginFrame(const cc::BeginFrameArgs& args) {} 169 void SurfacesInstance::OnBeginFrame(const cc::BeginFrameArgs& args) {}
170 170
171 void SurfacesInstance::WillDrawSurface() {} 171 void SurfacesInstance::WillDrawSurface(
172 const cc::LocalSurfaceId& local_surface_id,
173 const gfx::Rect& damage_rect) {}
172 174
173 void SurfacesInstance::ReclaimResources( 175 void SurfacesInstance::ReclaimResources(
174 const cc::ReturnedResourceArray& resources) { 176 const cc::ReturnedResourceArray& resources) {
175 // Root surface should have no resources to return. 177 // Root surface should have no resources to return.
176 CHECK(resources.empty()); 178 CHECK(resources.empty());
177 } 179 }
178 180
179 } // namespace android_webview 181 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/surfaces_instance.h ('k') | cc/ipc/mojo_compositor_frame_sink.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698