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

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

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 2 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698