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); | |
117 | 116 |
118 // WebLayerTreeView implementation. | 117 // WebLayerTreeView implementation. |
119 cc::FrameSinkId getFrameSinkId() override; | 118 cc::FrameSinkId getFrameSinkId() override; |
120 void setRootLayer(const blink::WebLayer& layer) override; | 119 void setRootLayer(const blink::WebLayer& layer) override; |
121 void clearRootLayer() override; | 120 void clearRootLayer() override; |
122 cc::AnimationHost* compositorAnimationHost() override; | 121 cc::AnimationHost* compositorAnimationHost() override; |
123 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 122 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
124 blink::WebSize getViewportSize() const override; | 123 blink::WebSize getViewportSize() const override; |
125 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 124 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
126 const blink::WebFloatPoint& point) const; | 125 const blink::WebFloatPoint& point) const; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 234 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
236 | 235 |
237 cc::FrameSinkId frame_sink_id_; | 236 cc::FrameSinkId frame_sink_id_; |
238 | 237 |
239 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 238 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
240 }; | 239 }; |
241 | 240 |
242 } // namespace content | 241 } // namespace content |
243 | 242 |
244 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 243 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |