Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 uint32_t GetSurfaceClientId() const;
100 void SetSurfaceClientId(uint32_t surface_id_namespace); 101 void SetSurfaceClientId(uint32_t surface_id_namespace);
101 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); 102 void OnHandleCompositorProto(const std::vector<uint8_t>& proto);
102 void SetPaintedDeviceScaleFactor(float device_scale); 103 void SetPaintedDeviceScaleFactor(float device_scale);
103 104
104 // WebLayerTreeView implementation. 105 // WebLayerTreeView implementation.
105 void setRootLayer(const blink::WebLayer& layer) override; 106 void setRootLayer(const blink::WebLayer& layer) override;
106 void clearRootLayer() override; 107 void clearRootLayer() override;
107 void attachCompositorAnimationTimeline( 108 void attachCompositorAnimationTimeline(
108 cc::AnimationTimeline* compositor_timeline) override; 109 cc::AnimationTimeline* compositor_timeline) override;
109 void detachCompositorAnimationTimeline( 110 void detachCompositorAnimationTimeline(
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; 223 std::unique_ptr<cc::CopyOutputRequest> temporary_copy_output_request_;
223 224
224 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; 225 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_;
225 226
226 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 227 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
227 }; 228 };
228 229
229 } // namespace content 230 } // namespace content
230 231
231 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 232 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698