| 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/input/top_controls_state.h" |
| 10 #include "cc/trees/layer_tree_host_client.h" | 11 #include "cc/trees/layer_tree_host_client.h" |
| 11 #include "cc/trees/layer_tree_settings.h" | 12 #include "cc/trees/layer_tree_settings.h" |
| 12 #include "skia/ext/refptr.h" | 13 #include "skia/ext/refptr.h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" |
| 14 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 15 | 16 |
| 16 class SkPicture; | 17 class SkPicture; |
| 17 | 18 |
| 18 namespace cc { | 19 namespace cc { |
| 19 class LayerTreeHost; | 20 class LayerTreeHost; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 31 static scoped_ptr<RenderWidgetCompositor> Create(RenderWidget* widget); | 32 static scoped_ptr<RenderWidgetCompositor> Create(RenderWidget* widget); |
| 32 | 33 |
| 33 virtual ~RenderWidgetCompositor(); | 34 virtual ~RenderWidgetCompositor(); |
| 34 | 35 |
| 35 void SetSuppressScheduleComposite(bool suppress); | 36 void SetSuppressScheduleComposite(bool suppress); |
| 36 void Animate(base::TimeTicks time); | 37 void Animate(base::TimeTicks time); |
| 37 void Composite(base::TimeTicks frame_begin_time); | 38 void Composite(base::TimeTicks frame_begin_time); |
| 38 void SetNeedsDisplayOnAllLayers(); | 39 void SetNeedsDisplayOnAllLayers(); |
| 39 void GetRenderingStats(cc::RenderingStats* stats); | 40 void GetRenderingStats(cc::RenderingStats* stats); |
| 40 skia::RefPtr<SkPicture> CapturePicture(); | 41 skia::RefPtr<SkPicture> CapturePicture(); |
| 41 void UpdateTopControlsState(bool enable_hiding, | 42 void UpdateTopControlsState(cc::TopControlsState constraints, |
| 42 bool enable_showing, | 43 cc::TopControlsState current, |
| 43 bool animate); | 44 bool animate); |
| 44 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 45 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
| 45 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 46 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
| 46 void SetLatencyInfo(const cc::LatencyInfo& latency_info); | 47 void SetLatencyInfo(const cc::LatencyInfo& latency_info); |
| 47 | 48 |
| 48 // WebLayerTreeView implementation. | 49 // WebLayerTreeView implementation. |
| 49 virtual void setSurfaceReady(); | 50 virtual void setSurfaceReady(); |
| 50 virtual void setRootLayer(const WebKit::WebLayer& layer); | 51 virtual void setRootLayer(const WebKit::WebLayer& layer); |
| 51 virtual void clearRootLayer(); | 52 virtual void clearRootLayer(); |
| 52 virtual void setViewportSize( | 53 virtual void setViewportSize( |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 111 |
| 111 bool threaded_; | 112 bool threaded_; |
| 112 bool suppress_schedule_composite_; | 113 bool suppress_schedule_composite_; |
| 113 RenderWidget* widget_; | 114 RenderWidget* widget_; |
| 114 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 115 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace content | 118 } // namespace content |
| 118 | 119 |
| 119 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 120 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |