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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void GetRenderingStats(cc::RenderingStats* stats); | 46 void GetRenderingStats(cc::RenderingStats* stats); |
47 void UpdateTopControlsState(cc::TopControlsState constraints, | 47 void UpdateTopControlsState(cc::TopControlsState constraints, |
48 cc::TopControlsState current, | 48 cc::TopControlsState current, |
49 bool animate); | 49 bool animate); |
50 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 50 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
51 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 51 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
52 void SetLatencyInfo(const ui::LatencyInfo& latency_info); | 52 void SetLatencyInfo(const ui::LatencyInfo& latency_info); |
53 int GetLayerTreeId() const; | 53 int GetLayerTreeId() const; |
54 void NotifyInputThrottledUntilCommit(); | 54 void NotifyInputThrottledUntilCommit(); |
55 const cc::Layer* GetRootLayer() const; | 55 const cc::Layer* GetRootLayer() const; |
| 56 void SetMaxTransferBufferUsageBytes(size_t max_bytes_pending_upload); |
56 | 57 |
57 // WebLayerTreeView implementation. | 58 // WebLayerTreeView implementation. |
58 virtual void setSurfaceReady(); | 59 virtual void setSurfaceReady(); |
59 virtual void setRootLayer(const WebKit::WebLayer& layer); | 60 virtual void setRootLayer(const WebKit::WebLayer& layer); |
60 virtual void clearRootLayer(); | 61 virtual void clearRootLayer(); |
61 virtual void setViewportSize( | 62 virtual void setViewportSize( |
62 const WebKit::WebSize& unused_deprecated, | 63 const WebKit::WebSize& unused_deprecated, |
63 const WebKit::WebSize& device_viewport_size); | 64 const WebKit::WebSize& device_viewport_size); |
64 virtual WebKit::WebSize layoutViewportSize() const; | 65 virtual WebKit::WebSize layoutViewportSize() const; |
65 virtual WebKit::WebSize deviceViewportSize() const; | 66 virtual WebKit::WebSize deviceViewportSize() const; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 115 |
115 private: | 116 private: |
116 RenderWidgetCompositor(RenderWidget* widget, bool threaded); | 117 RenderWidgetCompositor(RenderWidget* widget, bool threaded); |
117 | 118 |
118 bool initialize(cc::LayerTreeSettings settings); | 119 bool initialize(cc::LayerTreeSettings settings); |
119 | 120 |
120 bool threaded_; | 121 bool threaded_; |
121 bool suppress_schedule_composite_; | 122 bool suppress_schedule_composite_; |
122 RenderWidget* widget_; | 123 RenderWidget* widget_; |
123 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 124 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 125 size_t max_transfer_buffer_usage_bytes_; |
124 }; | 126 }; |
125 | 127 |
126 } // namespace content | 128 } // namespace content |
127 | 129 |
128 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 130 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |