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 "base/time.h" | 8 #include "base/time.h" |
9 #include "cc/debug/rendering_stats.h" | 9 #include "cc/debug/rendering_stats.h" |
10 #include "cc/trees/layer_tree_host_client.h" | 10 #include "cc/trees/layer_tree_host_client.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual void finishAllRendering(); | 76 virtual void finishAllRendering(); |
77 virtual void setDeferCommits(bool defer_commits); | 77 virtual void setDeferCommits(bool defer_commits); |
78 virtual void registerForAnimations(WebKit::WebLayer* layer); | 78 virtual void registerForAnimations(WebKit::WebLayer* layer); |
79 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} | 79 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} |
80 virtual void setShowFPSCounter(bool show); | 80 virtual void setShowFPSCounter(bool show); |
81 virtual void setShowPaintRects(bool show); | 81 virtual void setShowPaintRects(bool show); |
82 virtual void setShowDebugBorders(bool show); | 82 virtual void setShowDebugBorders(bool show); |
83 virtual void setContinuousPaintingEnabled(bool enabled); | 83 virtual void setContinuousPaintingEnabled(bool enabled); |
84 | 84 |
85 // cc::LayerTreeHostClient implementation. | 85 // cc::LayerTreeHostClient implementation. |
86 virtual void WillBeginFrame() OVERRIDE; | 86 virtual void WillBeginMainFrame() OVERRIDE; |
87 virtual void DidBeginFrame() OVERRIDE; | 87 virtual void DidBeginMainFrame() OVERRIDE; |
88 virtual void Animate(double frame_begin_time) OVERRIDE; | 88 virtual void Animate(double frame_begin_time) OVERRIDE; |
89 virtual void Layout() OVERRIDE; | 89 virtual void Layout() OVERRIDE; |
90 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 90 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, |
91 float page_scale) OVERRIDE; | 91 float page_scale) OVERRIDE; |
92 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; | 92 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; |
93 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; | 93 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; |
94 virtual scoped_ptr<cc::InputHandlerClient> CreateInputHandlerClient() | 94 virtual scoped_ptr<cc::InputHandlerClient> CreateInputHandlerClient() |
95 OVERRIDE; | 95 OVERRIDE; |
96 virtual void WillCommit() OVERRIDE; | 96 virtual void WillCommit() OVERRIDE; |
97 virtual void DidCommit() OVERRIDE; | 97 virtual void DidCommit() OVERRIDE; |
(...skipping 12 matching lines...) Expand all Loading... |
110 | 110 |
111 bool threaded_; | 111 bool threaded_; |
112 bool suppress_schedule_composite_; | 112 bool suppress_schedule_composite_; |
113 RenderWidget* widget_; | 113 RenderWidget* widget_; |
114 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 114 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
115 }; | 115 }; |
116 | 116 |
117 } // namespace content | 117 } // namespace content |
118 | 118 |
119 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 119 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |