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" |
11 #include "cc/input/top_controls_state.h" | 11 #include "cc/input/top_controls_state.h" |
12 #include "cc/trees/layer_tree_host_client.h" | 12 #include "cc/trees/layer_tree_host_client.h" |
13 #include "cc/trees/layer_tree_settings.h" | 13 #include "cc/trees/layer_tree_settings.h" |
14 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" | 14 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" |
| 15 #include "third_party/skia/include/core/SkBitmap.h" |
15 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
16 | 17 |
17 namespace ui { | 18 namespace ui { |
18 struct LatencyInfo; | 19 struct LatencyInfo; |
19 } | 20 } |
20 | 21 |
21 namespace cc { | 22 namespace cc { |
22 class InputHandler; | 23 class InputHandler; |
23 class Layer; | 24 class Layer; |
24 class LayerTreeHost; | 25 class LayerTreeHost; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
66 virtual WebKit::WebFloatPoint adjustEventPointForPinchZoom( | 67 virtual WebKit::WebFloatPoint adjustEventPointForPinchZoom( |
67 const WebKit::WebFloatPoint& point) const; | 68 const WebKit::WebFloatPoint& point) const; |
68 virtual void setDeviceScaleFactor(float device_scale); | 69 virtual void setDeviceScaleFactor(float device_scale); |
69 virtual float deviceScaleFactor() const; | 70 virtual float deviceScaleFactor() const; |
70 virtual void setBackgroundColor(WebKit::WebColor color); | 71 virtual void setBackgroundColor(WebKit::WebColor color); |
71 virtual void setHasTransparentBackground(bool transparent); | 72 virtual void setHasTransparentBackground(bool transparent); |
| 73 virtual void setOverhangBitmap(const SkBitmap& bitmap); |
72 virtual void setVisible(bool visible); | 74 virtual void setVisible(bool visible); |
73 virtual void setPageScaleFactorAndLimits(float page_scale_factor, | 75 virtual void setPageScaleFactorAndLimits(float page_scale_factor, |
74 float minimum, | 76 float minimum, |
75 float maximum); | 77 float maximum); |
76 virtual void startPageScaleAnimation(const WebKit::WebPoint& destination, | 78 virtual void startPageScaleAnimation(const WebKit::WebPoint& destination, |
77 bool use_anchor, | 79 bool use_anchor, |
78 float new_page_scale, | 80 float new_page_scale, |
79 double duration_sec); | 81 double duration_sec); |
80 virtual void setNeedsAnimate(); | 82 virtual void setNeedsAnimate(); |
81 virtual void setNeedsRedraw(); | 83 virtual void setNeedsRedraw(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 121 |
120 bool threaded_; | 122 bool threaded_; |
121 bool suppress_schedule_composite_; | 123 bool suppress_schedule_composite_; |
122 RenderWidget* widget_; | 124 RenderWidget* widget_; |
123 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 125 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
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 |