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

Unified Diff: android_webview/browser/hardware_renderer.cc

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 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 | android_webview/browser/surfaces_instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/hardware_renderer.cc
diff --git a/android_webview/browser/hardware_renderer.cc b/android_webview/browser/hardware_renderer.cc
index fdc5d70dc7a9b26fcdfef1eef1bf8d757f7d90cf..b951f94e0891262c2406aff2bbbf3d3cef6bceaf 100644
--- a/android_webview/browser/hardware_renderer.cc
+++ b/android_webview/browser/hardware_renderer.cc
@@ -28,14 +28,14 @@ HardwareRenderer::HardwareRenderer(RenderThreadManager* state)
last_egl_context_(eglGetCurrentContext()),
surfaces_(SurfacesInstance::GetOrCreateInstance()),
surface_id_allocator_(
- new cc::SurfaceIdAllocator(surfaces_->AllocateSurfaceClientId())),
+ new cc::SurfaceIdAllocator(surfaces_->AllocateFrameSinkId())),
last_committed_compositor_frame_sink_id_(0u),
last_submitted_compositor_frame_sink_id_(0u) {
DCHECK(last_egl_context_);
- surfaces_->GetSurfaceManager()->RegisterSurfaceClientId(
- surface_id_allocator_->client_id());
+ surfaces_->GetSurfaceManager()->RegisterFrameSinkId(
+ surface_id_allocator_->frame_sink_id());
surfaces_->GetSurfaceManager()->RegisterSurfaceFactoryClient(
- surface_id_allocator_->client_id(), this);
+ surface_id_allocator_->frame_sink_id(), this);
}
HardwareRenderer::~HardwareRenderer() {
@@ -45,9 +45,9 @@ HardwareRenderer::~HardwareRenderer() {
DestroySurface();
surface_factory_.reset();
surfaces_->GetSurfaceManager()->UnregisterSurfaceFactoryClient(
- surface_id_allocator_->client_id());
- surfaces_->GetSurfaceManager()->InvalidateSurfaceClientId(
- surface_id_allocator_->client_id());
+ surface_id_allocator_->frame_sink_id());
+ surfaces_->GetSurfaceManager()->InvalidateFrameSinkId(
+ surface_id_allocator_->frame_sink_id());
// Reset draw constraints.
render_thread_manager_->PostExternalDrawConstraintsToChildCompositorOnRT(
« no previous file with comments | « no previous file | android_webview/browser/surfaces_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698