| 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/trees/layer_tree_host_client.h" | 10 #include "cc/trees/layer_tree_host_client.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 void SetSuppressScheduleComposite(bool suppress); | 34 void SetSuppressScheduleComposite(bool suppress); |
| 35 void Animate(base::TimeTicks time); | 35 void Animate(base::TimeTicks time); |
| 36 void Composite(base::TimeTicks frame_begin_time); | 36 void Composite(base::TimeTicks frame_begin_time); |
| 37 void GetRenderingStats(cc::RenderingStats* stats); | 37 void GetRenderingStats(cc::RenderingStats* stats); |
| 38 skia::RefPtr<SkPicture> CapturePicture(); | 38 skia::RefPtr<SkPicture> CapturePicture(); |
| 39 void UpdateTopControlsState(bool enable_hiding, | 39 void UpdateTopControlsState(bool enable_hiding, |
| 40 bool enable_showing, | 40 bool enable_showing, |
| 41 bool animate); | 41 bool animate); |
| 42 void SetOverdrawBottomHeight(float overdraw_bottom_height); | 42 void SetOverdrawBottomHeight(float overdraw_bottom_height); |
| 43 void SetNeedsRedrawRect(gfx::Rect damage_rect); | 43 void SetNeedsRedrawRect(gfx::Rect damage_rect); |
| 44 void ShowTopControls(bool show); |
| 44 | 45 |
| 45 // WebLayerTreeView implementation. | 46 // WebLayerTreeView implementation. |
| 46 virtual void setSurfaceReady(); | 47 virtual void setSurfaceReady(); |
| 47 virtual void setRootLayer(const WebKit::WebLayer& layer); | 48 virtual void setRootLayer(const WebKit::WebLayer& layer); |
| 48 virtual void clearRootLayer(); | 49 virtual void clearRootLayer(); |
| 49 virtual void setViewportSize( | 50 virtual void setViewportSize( |
| 50 const WebKit::WebSize& unused_deprecated, | 51 const WebKit::WebSize& unused_deprecated, |
| 51 const WebKit::WebSize& device_viewport_size); | 52 const WebKit::WebSize& device_viewport_size); |
| 52 virtual WebKit::WebSize layoutViewportSize() const; | 53 virtual WebKit::WebSize layoutViewportSize() const; |
| 53 virtual WebKit::WebSize deviceViewportSize() const; | 54 virtual WebKit::WebSize deviceViewportSize() const; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 bool threaded_; | 108 bool threaded_; |
| 108 bool suppress_schedule_composite_; | 109 bool suppress_schedule_composite_; |
| 109 RenderWidget* widget_; | 110 RenderWidget* widget_; |
| 110 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 111 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 } // namespace content | 114 } // namespace content |
| 114 | 115 |
| 115 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 116 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| 116 | 117 |
| OLD | NEW |