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