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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 int GetSourceFrameNumber() const; | 90 int GetSourceFrameNumber() const; |
91 void SetNeedsUpdateLayers(); | 91 void SetNeedsUpdateLayers(); |
92 void SetNeedsCommit(); | 92 void SetNeedsCommit(); |
93 void NotifyInputThrottledUntilCommit(); | 93 void NotifyInputThrottledUntilCommit(); |
94 const cc::Layer* GetRootLayer() const; | 94 const cc::Layer* GetRootLayer() const; |
95 int ScheduleMicroBenchmark( | 95 int ScheduleMicroBenchmark( |
96 const std::string& name, | 96 const std::string& name, |
97 std::unique_ptr<base::Value> value, | 97 std::unique_ptr<base::Value> value, |
98 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); | 98 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); |
99 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); | 99 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); |
100 void SetSurfaceIdNamespace(uint32_t surface_id_namespace); | 100 void SetSurfaceClientId(uint32_t surface_id_namespace); |
101 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); | 101 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); |
102 void SetPaintedDeviceScaleFactor(float device_scale); | 102 void SetPaintedDeviceScaleFactor(float device_scale); |
103 | 103 |
104 // WebLayerTreeView implementation. | 104 // WebLayerTreeView implementation. |
105 void setRootLayer(const blink::WebLayer& layer) override; | 105 void setRootLayer(const blink::WebLayer& layer) override; |
106 void clearRootLayer() override; | 106 void clearRootLayer() override; |
107 void attachCompositorAnimationTimeline( | 107 void attachCompositorAnimationTimeline( |
108 cc::AnimationTimeline* compositor_timeline) override; | 108 cc::AnimationTimeline* compositor_timeline) override; |
109 void detachCompositorAnimationTimeline( | 109 void detachCompositorAnimationTimeline( |
110 cc::AnimationTimeline* compositor_timeline) override; | 110 cc::AnimationTimeline* compositor_timeline) override; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 222 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
223 | 223 |
224 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; | 224 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; |
225 | 225 |
226 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 226 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
227 }; | 227 }; |
228 | 228 |
229 } // namespace content | 229 } // namespace content |
230 | 230 |
231 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 231 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |