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

Side by Side Diff: android_webview/browser/hardware_renderer.cc

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/hardware_renderer.h" 5 #include "android_webview/browser/hardware_renderer.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_gl_surface.h" 9 #include "android_webview/browser/aw_gl_surface.h"
10 #include "android_webview/browser/aw_render_thread_context_provider.h" 10 #include "android_webview/browser/aw_render_thread_context_provider.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 171 }
172 172
173 void HardwareRenderer::DestroySurface() { 173 void HardwareRenderer::DestroySurface() {
174 DCHECK(child_id_.is_valid()); 174 DCHECK(child_id_.is_valid());
175 175
176 // Submit an empty frame to force any existing resources to be returned. 176 // Submit an empty frame to force any existing resources to be returned.
177 surface_factory_->SubmitCompositorFrame(child_id_, cc::CompositorFrame(), 177 surface_factory_->SubmitCompositorFrame(child_id_, cc::CompositorFrame(),
178 cc::SurfaceFactory::DrawCallback()); 178 cc::SurfaceFactory::DrawCallback());
179 surfaces_->RemoveChildId(cc::SurfaceId(frame_sink_id_, child_id_)); 179 surfaces_->RemoveChildId(cc::SurfaceId(frame_sink_id_, child_id_));
180 surface_factory_->EvictSurface(); 180 surface_factory_->EvictSurface();
181 child_id_ = cc::LocalFrameId(); 181 child_id_ = cc::LocalSurfaceId();
182 } 182 }
183 183
184 void HardwareRenderer::ReturnResources( 184 void HardwareRenderer::ReturnResources(
185 const cc::ReturnedResourceArray& resources) { 185 const cc::ReturnedResourceArray& resources) {
186 ReturnResourcesToCompositor(resources, compositor_id_, 186 ReturnResourcesToCompositor(resources, compositor_id_,
187 last_submitted_compositor_frame_sink_id_); 187 last_submitted_compositor_frame_sink_id_);
188 } 188 }
189 189
190 void HardwareRenderer::SetBeginFrameSource( 190 void HardwareRenderer::SetBeginFrameSource(
191 cc::BeginFrameSource* begin_frame_source) { 191 cc::BeginFrameSource* begin_frame_source) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 const cc::ReturnedResourceArray& resources, 248 const cc::ReturnedResourceArray& resources,
249 const CompositorID& compositor_id, 249 const CompositorID& compositor_id,
250 uint32_t compositor_frame_sink_id) { 250 uint32_t compositor_frame_sink_id) {
251 if (compositor_frame_sink_id != last_committed_compositor_frame_sink_id_) 251 if (compositor_frame_sink_id != last_committed_compositor_frame_sink_id_)
252 return; 252 return;
253 render_thread_manager_->InsertReturnedResourcesOnRT(resources, compositor_id, 253 render_thread_manager_->InsertReturnedResourcesOnRT(resources, compositor_id,
254 compositor_frame_sink_id); 254 compositor_frame_sink_id);
255 } 255 }
256 256
257 } // namespace android_webview 257 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/hardware_renderer.h ('k') | android_webview/browser/surfaces_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698