| 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 26 matching lines...) Expand all Loading... |
| 37 void Composite(base::TimeTicks frame_begin_time); | 37 void Composite(base::TimeTicks frame_begin_time); |
| 38 void SetNeedsDisplayOnAllLayers(); | 38 void SetNeedsDisplayOnAllLayers(); |
| 39 void GetRenderingStats(cc::RenderingStats* stats); | 39 void GetRenderingStats(cc::RenderingStats* stats); |
| 40 skia::RefPtr<SkPicture> CapturePicture(); | 40 skia::RefPtr<SkPicture> CapturePicture(); |
| 41 void UpdateTopControlsState(bool enable_hiding, | 41 void UpdateTopControlsState(bool enable_hiding, |
| 42 bool enable_showing, | 42 bool enable_showing, |
| 43 bool animate); | 43 bool animate); |
| 44 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 44 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
| 45 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 45 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
| 46 void SetLatencyInfo(const cc::LatencyInfo& latency_info); | 46 void SetLatencyInfo(const cc::LatencyInfo& latency_info); |
| 47 void ShowTopControls(bool show); |
| 48 float GetTopControlsOffset(); |
| 47 | 49 |
| 48 // WebLayerTreeView implementation. | 50 // WebLayerTreeView implementation. |
| 49 virtual void setSurfaceReady(); | 51 virtual void setSurfaceReady(); |
| 50 virtual void setRootLayer(const WebKit::WebLayer& layer); | 52 virtual void setRootLayer(const WebKit::WebLayer& layer); |
| 51 virtual void clearRootLayer(); | 53 virtual void clearRootLayer(); |
| 52 virtual void setViewportSize( | 54 virtual void setViewportSize( |
| 53 const WebKit::WebSize& unused_deprecated, | 55 const WebKit::WebSize& unused_deprecated, |
| 54 const WebKit::WebSize& device_viewport_size); | 56 const WebKit::WebSize& device_viewport_size); |
| 55 virtual WebKit::WebSize layoutViewportSize() const; | 57 virtual WebKit::WebSize layoutViewportSize() const; |
| 56 virtual WebKit::WebSize deviceViewportSize() const; | 58 virtual WebKit::WebSize deviceViewportSize() const; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 112 |
| 111 bool threaded_; | 113 bool threaded_; |
| 112 bool suppress_schedule_composite_; | 114 bool suppress_schedule_composite_; |
| 113 RenderWidget* widget_; | 115 RenderWidget* widget_; |
| 114 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 116 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 } // namespace content | 119 } // namespace content |
| 118 | 120 |
| 119 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 121 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |