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

Side by Side Diff: ui/gfx/compositor/compositor_cc.h

Issue 8463024: Implement CompositorCC::ReadPixels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor host API change. Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/compositor/compositor.cc ('k') | ui/gfx/compositor/compositor_cc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_ 5 #ifndef UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_
6 #define UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_ 6 #define UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 protected: 90 protected:
91 // Compositor implementation. 91 // Compositor implementation.
92 virtual Texture* CreateTexture() OVERRIDE; 92 virtual Texture* CreateTexture() OVERRIDE;
93 virtual void Blur(const gfx::Rect& bounds) OVERRIDE; 93 virtual void Blur(const gfx::Rect& bounds) OVERRIDE;
94 virtual void ScheduleDraw() OVERRIDE; 94 virtual void ScheduleDraw() OVERRIDE;
95 virtual void OnNotifyStart(bool clear) OVERRIDE; 95 virtual void OnNotifyStart(bool clear) OVERRIDE;
96 virtual void OnNotifyEnd() OVERRIDE; 96 virtual void OnNotifyEnd() OVERRIDE;
97 virtual void OnWidgetSizeChanged() OVERRIDE; 97 virtual void OnWidgetSizeChanged() OVERRIDE;
98 virtual void OnRootLayerChanged() OVERRIDE; 98 virtual void OnRootLayerChanged() OVERRIDE;
99 virtual void DrawTree() OVERRIDE; 99 virtual void DrawTree() OVERRIDE;
100 virtual void ReadPixels(SkBitmap* bitmap) OVERRIDE; 100 virtual bool ReadPixels(SkBitmap* bitmap) OVERRIDE;
101 101
102 // WebLayerTreeViewClient implementation. 102 // WebLayerTreeViewClient implementation.
103 virtual void animateAndLayout(double frameBeginTime); 103 virtual void animateAndLayout(double frameBeginTime);
104 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta, 104 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta,
105 float scaleFactor); 105 float scaleFactor);
106 virtual void applyScrollDelta(const WebKit::WebSize&); 106 virtual void applyScrollDelta(const WebKit::WebSize&);
107 virtual WebKit::WebGraphicsContext3D* createContext3D(); 107 virtual WebKit::WebGraphicsContext3D* createContext3D();
108 virtual void didRebindGraphicsContext(bool success); 108 virtual void didRebindGraphicsContext(bool success);
109 virtual void scheduleComposite(); 109 virtual void scheduleComposite();
110 110
111 // WebLayerClient implementation. 111 // WebLayerClient implementation.
112 virtual void notifyNeedsComposite(); 112 virtual void notifyNeedsComposite();
113 113
114 private: 114 private:
115 gfx::AcceleratedWidget widget_; 115 gfx::AcceleratedWidget widget_;
116 WebKit::WebLayer root_web_layer_; 116 WebKit::WebLayer root_web_layer_;
117 WebKit::WebLayerTreeView host_; 117 WebKit::WebLayerTreeView host_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(CompositorCC); 119 DISALLOW_COPY_AND_ASSIGN(CompositorCC);
120 }; 120 };
121 121
122 } // namespace ui 122 } // namespace ui
123 123
124 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_ 124 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_
OLDNEW
« no previous file with comments | « ui/gfx/compositor/compositor.cc ('k') | ui/gfx/compositor/compositor_cc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698