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