OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
7 | 7 |
8 #include "cc/layer_tree_host_client.h" | 8 #include "cc/layer_tree_host_client.h" |
9 #include "cc/layer_tree_settings.h" | 9 #include "cc/layer_tree_settings.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 double duration_sec); | 55 double duration_sec); |
56 virtual void setNeedsAnimate(); | 56 virtual void setNeedsAnimate(); |
57 virtual void setNeedsRedraw(); | 57 virtual void setNeedsRedraw(); |
58 virtual bool commitRequested() const; | 58 virtual bool commitRequested() const; |
59 virtual void composite(); | 59 virtual void composite(); |
60 virtual void updateAnimations(double frame_begin_time); | 60 virtual void updateAnimations(double frame_begin_time); |
61 virtual void didStopFlinging(); | 61 virtual void didStopFlinging(); |
62 virtual bool compositeAndReadback(void *pixels, const WebKit::WebRect& rect); | 62 virtual bool compositeAndReadback(void *pixels, const WebKit::WebRect& rect); |
63 virtual void finishAllRendering(); | 63 virtual void finishAllRendering(); |
64 virtual void setDeferCommits(bool defer_commits); | 64 virtual void setDeferCommits(bool defer_commits); |
| 65 virtual void registerForAnimations(WebKit::WebLayer* layer); |
65 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} | 66 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} |
66 virtual void setShowFPSCounter(bool show); | 67 virtual void setShowFPSCounter(bool show); |
67 virtual void setShowPaintRects(bool show); | 68 virtual void setShowPaintRects(bool show); |
68 virtual void setShowDebugBorders(bool show); | 69 virtual void setShowDebugBorders(bool show); |
69 virtual void setContinuousPaintingEnabled(bool enabled); | 70 virtual void setContinuousPaintingEnabled(bool enabled); |
70 | 71 |
71 // cc::LayerTreeHostClient implementation. | 72 // cc::LayerTreeHostClient implementation. |
72 virtual void willBeginFrame() OVERRIDE; | 73 virtual void willBeginFrame() OVERRIDE; |
73 virtual void didBeginFrame() OVERRIDE; | 74 virtual void didBeginFrame() OVERRIDE; |
74 virtual void animate(double monotonic_frame_begin_time) OVERRIDE; | 75 virtual void animate(double monotonic_frame_begin_time) OVERRIDE; |
(...skipping 18 matching lines...) Expand all Loading... |
93 bool threaded_; | 94 bool threaded_; |
94 RenderWidget* widget_; | 95 RenderWidget* widget_; |
95 WebKit::WebLayerTreeViewClient* client_; | 96 WebKit::WebLayerTreeViewClient* client_; |
96 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 97 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
97 }; | 98 }; |
98 | 99 |
99 } // namespace content | 100 } // namespace content |
100 | 101 |
101 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 102 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
102 | 103 |
OLD | NEW |