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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 virtual ~RenderWidgetCompositor(); | 31 virtual ~RenderWidgetCompositor(); |
32 | 32 |
33 void SetSuppressScheduleComposite(bool suppress); | 33 void SetSuppressScheduleComposite(bool suppress); |
34 void Animate(base::TimeTicks time); | 34 void Animate(base::TimeTicks time); |
35 void Composite(base::TimeTicks frame_begin_time); | 35 void Composite(base::TimeTicks frame_begin_time); |
36 void GetRenderingStats(cc::RenderingStats* stats); | 36 void GetRenderingStats(cc::RenderingStats* stats); |
37 skia::RefPtr<SkPicture> CapturePicture(); | 37 skia::RefPtr<SkPicture> CapturePicture(); |
38 void EnableHidingTopControls(bool enable); | 38 void EnableHidingTopControls(bool enable); |
39 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 39 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
| 40 void ShowTopControls(bool show); |
40 | 41 |
41 // WebLayerTreeView implementation. | 42 // WebLayerTreeView implementation. |
42 virtual void setSurfaceReady(); | 43 virtual void setSurfaceReady(); |
43 virtual void setRootLayer(const WebKit::WebLayer& layer); | 44 virtual void setRootLayer(const WebKit::WebLayer& layer); |
44 virtual void clearRootLayer(); | 45 virtual void clearRootLayer(); |
45 virtual void setViewportSize( | 46 virtual void setViewportSize( |
46 const WebKit::WebSize& layout_viewport_size, | 47 const WebKit::WebSize& layout_viewport_size, |
47 const WebKit::WebSize& device_viewport_size); | 48 const WebKit::WebSize& device_viewport_size); |
48 virtual WebKit::WebSize layoutViewportSize() const; | 49 virtual WebKit::WebSize layoutViewportSize() const; |
49 virtual WebKit::WebSize deviceViewportSize() const; | 50 virtual WebKit::WebSize deviceViewportSize() const; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 bool threaded_; | 104 bool threaded_; |
104 bool suppress_schedule_composite_; | 105 bool suppress_schedule_composite_; |
105 RenderWidget* widget_; | 106 RenderWidget* widget_; |
106 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 107 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
107 }; | 108 }; |
108 | 109 |
109 } // namespace content | 110 } // namespace content |
110 | 111 |
111 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 112 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
112 | 113 |
OLD | NEW |