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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 int GetSourceFrameNumber() const; | 94 int GetSourceFrameNumber() const; |
95 void SetNeedsUpdateLayers(); | 95 void SetNeedsUpdateLayers(); |
96 void SetNeedsCommit(); | 96 void SetNeedsCommit(); |
97 void NotifyInputThrottledUntilCommit(); | 97 void NotifyInputThrottledUntilCommit(); |
98 const cc::Layer* GetRootLayer() const; | 98 const cc::Layer* GetRootLayer() const; |
99 int ScheduleMicroBenchmark( | 99 int ScheduleMicroBenchmark( |
100 const std::string& name, | 100 const std::string& name, |
101 std::unique_ptr<base::Value> value, | 101 std::unique_ptr<base::Value> value, |
102 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); | 102 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); |
103 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); | 103 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); |
104 void SetSurfaceClientId(uint32_t surface_id_namespace); | 104 void SetFrameSinkId(const cc::FrameSinkId& frame_sink_id); |
105 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); | 105 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); |
106 void SetPaintedDeviceScaleFactor(float device_scale); | 106 void SetPaintedDeviceScaleFactor(float device_scale); |
107 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); | 107 void SetDeviceColorSpace(const gfx::ColorSpace& color_space); |
108 | 108 |
109 // WebLayerTreeView implementation. | 109 // WebLayerTreeView implementation. |
110 void setRootLayer(const blink::WebLayer& layer) override; | 110 void setRootLayer(const blink::WebLayer& layer) override; |
111 void clearRootLayer() override; | 111 void clearRootLayer() override; |
112 void attachCompositorAnimationTimeline( | 112 void attachCompositorAnimationTimeline( |
113 cc::AnimationTimeline* compositor_timeline) override; | 113 cc::AnimationTimeline* compositor_timeline) override; |
114 void detachCompositorAnimationTimeline( | 114 void detachCompositorAnimationTimeline( |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; | 230 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; |
231 | 231 |
232 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 232 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
233 | 233 |
234 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 234 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
235 }; | 235 }; |
236 | 236 |
237 } // namespace content | 237 } // namespace content |
238 | 238 |
239 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 239 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |