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

Side by Side Diff: content/browser/renderer_host/browser_compositor_view_mac.h

Issue 2950183002: color: Use ICCProfile from display::Display instead of FromBestMonitor (Closed)
Patch Set: Use forced color profile in display::Display ctor Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // This may return nullptr, if this has detached itself from its 54 // This may return nullptr, if this has detached itself from its
55 // ui::Compositor. 55 // ui::Compositor.
56 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac(); 56 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac();
57 57
58 void DidCreateNewRendererCompositorFrameSink( 58 void DidCreateNewRendererCompositorFrameSink(
59 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink); 59 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink);
60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
61 cc::CompositorFrame frame); 61 cc::CompositorFrame frame);
62 void OnDidNotProduceFrame(const cc::BeginFrameAck& ack); 62 void OnDidNotProduceFrame(const cc::BeginFrameAck& ack);
63 void SetHasTransparentBackground(bool transparent); 63 void SetHasTransparentBackground(bool transparent);
64 void SetDisplayColorProfile(const gfx::ICCProfile& icc_profile); 64 void SetDisplayColorSpace(const gfx::ColorSpace& color_space);
65 void UpdateVSyncParameters(const base::TimeTicks& timebase, 65 void UpdateVSyncParameters(const base::TimeTicks& timebase,
66 const base::TimeDelta& interval); 66 const base::TimeDelta& interval);
67 void SetNeedsBeginFrames(bool needs_begin_frames); 67 void SetNeedsBeginFrames(bool needs_begin_frames);
68 68
69 // This is used to ensure that the ui::Compositor be attached to the 69 // This is used to ensure that the ui::Compositor be attached to the
70 // DelegatedFrameHost while the RWHImpl is visible. 70 // DelegatedFrameHost while the RWHImpl is visible.
71 // Note: This should be called before the RWHImpl is made visible and after 71 // Note: This should be called before the RWHImpl is made visible and after
72 // it has been hidden, in order to ensure that thumbnailer notifications to 72 // it has been hidden, in order to ensure that thumbnailer notifications to
73 // initiate copies occur before the ui::Compositor be detached. 73 // initiate copies occur before the ui::Compositor be detached.
74 void SetRenderWidgetHostIsHidden(bool hidden); 74 void SetRenderWidgetHostIsHidden(bool hidden);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 bool has_transparent_background_ = false; 165 bool has_transparent_background_ = false;
166 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = 166 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ =
167 nullptr; 167 nullptr;
168 168
169 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; 169 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_;
170 }; 170 };
171 171
172 } // namespace content 172 } // namespace content
173 173
174 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ 174 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator.cc ('k') | content/browser/renderer_host/browser_compositor_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698