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

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: Add aura:: 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 | « no previous file | content/browser/compositor/delegated_frame_host.cc » ('j') | ui/aura/window_tree_host.cc » ('J')
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..7e9d1aa35c58b4b0a08332d87c969e705faedaab 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,
@@ -228,6 +227,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 | « no previous file | content/browser/compositor/delegated_frame_host.cc » ('j') | ui/aura/window_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698