| 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 20 matching lines...) Expand all Loading... |
| 31 namespace cc { | 31 namespace cc { |
| 32 class CopyOutputRequest; | 32 class CopyOutputRequest; |
| 33 class InputHandler; | 33 class InputHandler; |
| 34 class Layer; | 34 class Layer; |
| 35 class LayerTreeHostInterface; | 35 class LayerTreeHostInterface; |
| 36 namespace proto { | 36 namespace proto { |
| 37 class CompositorMessage; | 37 class CompositorMessage; |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace gfx { | |
| 42 class ColorSpace; | |
| 43 } | |
| 44 | |
| 45 namespace ui { | 41 namespace ui { |
| 46 class LatencyInfo; | 42 class LatencyInfo; |
| 47 } | 43 } |
| 48 | 44 |
| 49 namespace content { | 45 namespace content { |
| 50 | 46 |
| 51 class RenderWidgetCompositorDelegate; | 47 class RenderWidgetCompositorDelegate; |
| 52 | 48 |
| 53 class CONTENT_EXPORT RenderWidgetCompositor | 49 class CONTENT_EXPORT RenderWidgetCompositor |
| 54 : NON_EXPORTED_BASE(public blink::WebLayerTreeView), | 50 : NON_EXPORTED_BASE(public blink::WebLayerTreeView), |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void NotifyInputThrottledUntilCommit(); | 93 void NotifyInputThrottledUntilCommit(); |
| 98 const cc::Layer* GetRootLayer() const; | 94 const cc::Layer* GetRootLayer() const; |
| 99 int ScheduleMicroBenchmark( | 95 int ScheduleMicroBenchmark( |
| 100 const std::string& name, | 96 const std::string& name, |
| 101 std::unique_ptr<base::Value> value, | 97 std::unique_ptr<base::Value> value, |
| 102 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); | 98 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); |
| 103 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); | 99 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); |
| 104 void SetSurfaceClientId(uint32_t surface_id_namespace); | 100 void SetSurfaceClientId(uint32_t surface_id_namespace); |
| 105 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); | 101 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); |
| 106 void SetPaintedDeviceScaleFactor(float device_scale); | 102 void SetPaintedDeviceScaleFactor(float device_scale); |
| 107 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); | |
| 108 | 103 |
| 109 // WebLayerTreeView implementation. | 104 // WebLayerTreeView implementation. |
| 110 void setRootLayer(const blink::WebLayer& layer) override; | 105 void setRootLayer(const blink::WebLayer& layer) override; |
| 111 void clearRootLayer() override; | 106 void clearRootLayer() override; |
| 112 void attachCompositorAnimationTimeline( | 107 void attachCompositorAnimationTimeline( |
| 113 cc::AnimationTimeline* compositor_timeline) override; | 108 cc::AnimationTimeline* compositor_timeline) override; |
| 114 void detachCompositorAnimationTimeline( | 109 void detachCompositorAnimationTimeline( |
| 115 cc::AnimationTimeline* compositor_timeline) override; | 110 cc::AnimationTimeline* compositor_timeline) override; |
| 116 void setViewportSize(const blink::WebSize& device_viewport_size) override; | 111 void setViewportSize(const blink::WebSize& device_viewport_size) override; |
| 117 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 112 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 226 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
| 232 | 227 |
| 233 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 228 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
| 234 | 229 |
| 235 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 230 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
| 236 }; | 231 }; |
| 237 | 232 |
| 238 } // namespace content | 233 } // namespace content |
| 239 | 234 |
| 240 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 235 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |