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