| 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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "cc/debug/rendering_stats.h" | 10 #include "cc/debug/rendering_stats.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void Composite(base::TimeTicks frame_begin_time); | 42 void Composite(base::TimeTicks frame_begin_time); |
| 43 void SetNeedsDisplayOnAllLayers(); | 43 void SetNeedsDisplayOnAllLayers(); |
| 44 void SetRasterizeOnlyVisibleContent(); | 44 void SetRasterizeOnlyVisibleContent(); |
| 45 void GetRenderingStats(cc::RenderingStats* stats); | 45 void GetRenderingStats(cc::RenderingStats* stats); |
| 46 void UpdateTopControlsState(cc::TopControlsState constraints, | 46 void UpdateTopControlsState(cc::TopControlsState constraints, |
| 47 cc::TopControlsState current, | 47 cc::TopControlsState current, |
| 48 bool animate); | 48 bool animate); |
| 49 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 49 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
| 50 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 50 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
| 51 void SetLatencyInfo(const ui::LatencyInfo& latency_info); | 51 void SetLatencyInfo(const ui::LatencyInfo& latency_info); |
| 52 int GetLayerTreeId() const; |
| 52 | 53 |
| 53 // WebLayerTreeView implementation. | 54 // WebLayerTreeView implementation. |
| 54 virtual void setSurfaceReady(); | 55 virtual void setSurfaceReady(); |
| 55 virtual void setRootLayer(const WebKit::WebLayer& layer); | 56 virtual void setRootLayer(const WebKit::WebLayer& layer); |
| 56 virtual void clearRootLayer(); | 57 virtual void clearRootLayer(); |
| 57 virtual void setViewportSize( | 58 virtual void setViewportSize( |
| 58 const WebKit::WebSize& unused_deprecated, | 59 const WebKit::WebSize& unused_deprecated, |
| 59 const WebKit::WebSize& device_viewport_size); | 60 const WebKit::WebSize& device_viewport_size); |
| 60 virtual WebKit::WebSize layoutViewportSize() const; | 61 virtual WebKit::WebSize layoutViewportSize() const; |
| 61 virtual WebKit::WebSize deviceViewportSize() const; | 62 virtual WebKit::WebSize deviceViewportSize() const; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 115 |
| 115 bool threaded_; | 116 bool threaded_; |
| 116 bool suppress_schedule_composite_; | 117 bool suppress_schedule_composite_; |
| 117 RenderWidget* widget_; | 118 RenderWidget* widget_; |
| 118 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 119 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace content | 122 } // namespace content |
| 122 | 123 |
| 123 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 124 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |