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

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

Issue 2325773003: cc: Plumb the monitor color profile to renderer for rasterization (Closed)
Patch Set: Unrevert Created 4 years, 3 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/public/common/screen_info.cc ('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 20 matching lines...) Expand all
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
41 namespace ui { 45 namespace ui {
42 class LatencyInfo; 46 class LatencyInfo;
43 } 47 }
44 48
45 namespace content { 49 namespace content {
46 50
47 class RenderWidgetCompositorDelegate; 51 class RenderWidgetCompositorDelegate;
48 52
49 class CONTENT_EXPORT RenderWidgetCompositor 53 class CONTENT_EXPORT RenderWidgetCompositor
50 : NON_EXPORTED_BASE(public blink::WebLayerTreeView), 54 : NON_EXPORTED_BASE(public blink::WebLayerTreeView),
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void NotifyInputThrottledUntilCommit(); 97 void NotifyInputThrottledUntilCommit();
94 const cc::Layer* GetRootLayer() const; 98 const cc::Layer* GetRootLayer() const;
95 int ScheduleMicroBenchmark( 99 int ScheduleMicroBenchmark(
96 const std::string& name, 100 const std::string& name,
97 std::unique_ptr<base::Value> value, 101 std::unique_ptr<base::Value> value,
98 const base::Callback<void(std::unique_ptr<base::Value>)>& callback); 102 const base::Callback<void(std::unique_ptr<base::Value>)>& callback);
99 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value); 103 bool SendMessageToMicroBenchmark(int id, std::unique_ptr<base::Value> value);
100 void SetSurfaceClientId(uint32_t surface_id_namespace); 104 void SetSurfaceClientId(uint32_t surface_id_namespace);
101 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); 105 void OnHandleCompositorProto(const std::vector<uint8_t>& proto);
102 void SetPaintedDeviceScaleFactor(float device_scale); 106 void SetPaintedDeviceScaleFactor(float device_scale);
107 void SetDeviceColorSpace(const gfx::ColorSpace& color_space);
103 108
104 // WebLayerTreeView implementation. 109 // WebLayerTreeView implementation.
105 void setRootLayer(const blink::WebLayer& layer) override; 110 void setRootLayer(const blink::WebLayer& layer) override;
106 void clearRootLayer() override; 111 void clearRootLayer() override;
107 void attachCompositorAnimationTimeline( 112 void attachCompositorAnimationTimeline(
108 cc::AnimationTimeline* compositor_timeline) override; 113 cc::AnimationTimeline* compositor_timeline) override;
109 void detachCompositorAnimationTimeline( 114 void detachCompositorAnimationTimeline(
110 cc::AnimationTimeline* compositor_timeline) override; 115 cc::AnimationTimeline* compositor_timeline) override;
111 void setViewportSize(const blink::WebSize& device_viewport_size) override; 116 void setViewportSize(const blink::WebSize& device_viewport_size) override;
112 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( 117 virtual blink::WebFloatPoint adjustEventPointForPinchZoom(
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_; 231 blink::WebLayoutAndPaintAsyncCallback* layout_and_paint_async_callback_;
227 232
228 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_; 233 cc::RemoteProtoChannel::ProtoReceiver* remote_proto_channel_receiver_;
229 234
230 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 235 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
231 }; 236 };
232 237
233 } // namespace content 238 } // namespace content
234 239
235 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 240 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/public/common/screen_info.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698