OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |