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

Unified Diff: content/browser/renderer_host/delegated_frame_host.h

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy Created 4 years, 5 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
Index: content/browser/renderer_host/delegated_frame_host.h
diff --git a/content/browser/renderer_host/delegated_frame_host.h b/content/browser/renderer_host/delegated_frame_host.h
index f0d6b2423ed5f86d4fb56156219d6b7748c8c45c..6b3e2282481f77bfe342b45002ecffab479bbbfb 100644
--- a/content/browser/renderer_host/delegated_frame_host.h
+++ b/content/browser/renderer_host/delegated_frame_host.h
@@ -99,6 +99,7 @@ class CONTENT_EXPORT DelegatedFrameHost
~DelegatedFrameHost() override;
// ui::CompositorObserver implementation.
+ void OnCompositingInitialized(ui::Compositor* compositor) override;
void OnCompositingDidCommit(ui::Compositor* compositor) override;
void OnCompositingStarted(ui::Compositor* compositor,
base::TimeTicks start_time) override;
@@ -131,6 +132,7 @@ class CONTENT_EXPORT DelegatedFrameHost
// Public interface exposed to RenderWidgetHostView.
void SwapDelegatedFrame(uint32_t output_surface_id,
+ const cc::SurfaceId& surface_id,
cc::CompositorFrame frame);
void ClearDelegatedFrame();
void WasHidden();
@@ -280,7 +282,7 @@ class CONTENT_EXPORT DelegatedFrameHost
SkColor background_color_;
// State for rendering into a Surface.
- std::unique_ptr<cc::SurfaceIdAllocator> id_allocator_;
+ uint32_t surface_client_id_;
std::unique_ptr<cc::SurfaceFactory> surface_factory_;
cc::SurfaceId surface_id_;
gfx::Size current_surface_size_;

Powered by Google App Engine
This is Rietveld 408576698