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

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

Issue 859423002: Explicitly specify the ui::Compositor to DelegatedFrameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use compositor Created 5 years, 11 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 | « ash/wm/window_animations.cc ('k') | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/delegated_frame_host.h
diff --git a/content/browser/compositor/delegated_frame_host.h b/content/browser/compositor/delegated_frame_host.h
index 59431018ceefefb84686de529029df9eed271642..593455b97fb183f9f6372ece5dc6e6d1a239d07e 100644
--- a/content/browser/compositor/delegated_frame_host.h
+++ b/content/browser/compositor/delegated_frame_host.h
@@ -44,7 +44,6 @@ class ResizeLock;
// display them.
class CONTENT_EXPORT DelegatedFrameHostClient {
public:
- virtual ui::Compositor* GetCompositor() const = 0;
virtual ui::Layer* GetLayer() = 0;
virtual RenderWidgetHostImpl* GetHost() = 0;
virtual bool IsVisible() = 0;
@@ -96,8 +95,8 @@ class CONTENT_EXPORT DelegatedFrameHost
void WasResized();
bool HasSavedFrame();
gfx::Size GetRequestedRendererSize() const;
- void AddedToWindow();
- void RemovingFromWindow();
+ void SetCompositor(ui::Compositor* compositor);
+ void ResetCompositor();
void CopyFromCompositingSurface(const gfx::Rect& src_subrect,
const gfx::Size& output_size,
ReadbackRequestCallback& callback,
@@ -151,6 +150,7 @@ class CONTENT_EXPORT DelegatedFrameHost
void OnCompositingEnded(ui::Compositor* compositor) override;
void OnCompositingAborted(ui::Compositor* compositor) override;
void OnCompositingLockStateChanged(ui::Compositor* compositor) override;
+ void OnCompositingShuttingDown(ui::Compositor* compositor) override;
// Overridden from ui::CompositorVSyncManager::Observer:
void OnUpdateVSyncParameters(base::TimeTicks timebase,
@@ -228,6 +228,8 @@ class CONTENT_EXPORT DelegatedFrameHost
DelegatedFrameHostClient* client_;
+ ui::Compositor* compositor_;
+
// True if this renders into a Surface, false if it renders into a delegated
// layer.
bool use_surfaces_;
« no previous file with comments | « ash/wm/window_animations.cc ('k') | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698