| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 const cc::Layer* GetRootLayer() const; | 106 const cc::Layer* GetRootLayer() const; |
| 107 int ScheduleMicroBenchmark( | 107 int ScheduleMicroBenchmark( |
| 108 const std::string& name, | 108 const std::string& name, |
| 109 std::unique_ptr<base::Value> value, | 109 std::unique_ptr<base::Value> value, |
| 110 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); | 110 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); |
| 111 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); | 111 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); |
| 112 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); | 112 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); |
| 113 void SetPaintedDeviceScaleFactor(float device_scale); | 113 void SetPaintedDeviceScaleFactor(float device_scale); |
| 114 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); | 114 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); |
| 115 void SetIsForOopif(bool is_for_oopif); | 115 void SetIsForOopif(bool is_for_oopif); |
| 116 void SetContentSourceId(uint32_t); |
| 116 | 117 |
| 117 // WebLayerTreeView implementation. | 118 // WebLayerTreeView implementation. |
| 118 cc::FrameSinkId getFrameSinkId() override; | 119 cc::FrameSinkId getFrameSinkId() override; |
| 119 void setRootLayer(const blink::WebLayer& layer) override; | 120 void setRootLayer(const blink::WebLayer& layer) override; |
| 120 void clearRootLayer() override; | 121 void clearRootLayer() override; |
| 121 cc::AnimationHost* compositorAnimationHost() override; | 122 cc::AnimationHost* compositorAnimationHost() override; |
| 122 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 123 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
| 123 blink::WebSize getViewportSize() const override; | 124 blink::WebSize getViewportSize() const override; |
| 124 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 125 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
| 125 const blink::WebFloatPoint& point) const; | 126 const blink::WebFloatPoint& point) const; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 235 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 235 | 236 |
| 236 cc::FrameSinkId frame_sink_id_; | 237 cc::FrameSinkId frame_sink_id_; |
| 237 | 238 |
| 238 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 239 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace content | 242 } // namespace content |
| 242 | 243 |
| 243 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 244 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |