| 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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 cc::ManagedMemoryPolicy GetGpuMemoryPolicy( | 82 cc::ManagedMemoryPolicy GetGpuMemoryPolicy( |
| 83 const cc::ManagedMemoryPolicy& policy); | 83 const cc::ManagedMemoryPolicy& policy); |
| 84 | 84 |
| 85 // WebLayerTreeView implementation. | 85 // WebLayerTreeView implementation. |
| 86 void setRootLayer(const blink::WebLayer& layer) override; | 86 void setRootLayer(const blink::WebLayer& layer) override; |
| 87 void clearRootLayer() override; | 87 void clearRootLayer() override; |
| 88 void attachCompositorAnimationTimeline( | 88 void attachCompositorAnimationTimeline( |
| 89 blink::WebCompositorAnimationTimeline* compositor_timeline) override; | 89 blink::WebCompositorAnimationTimeline* compositor_timeline) override; |
| 90 void detachCompositorAnimationTimeline( | 90 void detachCompositorAnimationTimeline( |
| 91 blink::WebCompositorAnimationTimeline* compositor_timeline) override; | 91 blink::WebCompositorAnimationTimeline* compositor_timeline) override; |
| 92 virtual void setViewportSize( | |
| 93 const blink::WebSize& unused_deprecated, | |
| 94 const blink::WebSize& device_viewport_size); | |
| 95 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 92 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
| 96 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 93 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
| 97 const blink::WebFloatPoint& point) const; | 94 const blink::WebFloatPoint& point) const; |
| 98 void setDeviceScaleFactor(float device_scale) override; | 95 void setDeviceScaleFactor(float device_scale) override; |
| 99 void setBackgroundColor(blink::WebColor color) override; | 96 void setBackgroundColor(blink::WebColor color) override; |
| 100 void setHasTransparentBackground(bool transparent) override; | 97 void setHasTransparentBackground(bool transparent) override; |
| 101 void setVisible(bool visible) override; | 98 void setVisible(bool visible) override; |
| 102 void setPageScaleFactorAndLimits(float page_scale_factor, | 99 void setPageScaleFactorAndLimits(float page_scale_factor, |
| 103 float minimum, | 100 float minimum, |
| 104 float maximum) override; | 101 float maximum) override; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 189 |
| 193 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 190 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 194 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 191 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
| 195 | 192 |
| 196 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 193 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 197 }; | 194 }; |
| 198 | 195 |
| 199 } // namespace content | 196 } // namespace content |
| 200 | 197 |
| 201 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 198 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |