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

Side by Side Diff: ui/compositor/compositor.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, 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
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/compositor/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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // Finishes all outstanding rendering and disables swapping on this surface 239 // Finishes all outstanding rendering and disables swapping on this surface
240 // until it is resized. 240 // until it is resized.
241 void DisableSwapUntilResize(); 241 void DisableSwapUntilResize();
242 242
243 void SetLatencyInfo(const LatencyInfo& latency_info); 243 void SetLatencyInfo(const LatencyInfo& latency_info);
244 244
245 // Sets the compositor's device scale factor and size. 245 // Sets the compositor's device scale factor and size.
246 void SetScaleAndSize(float scale, const gfx::Size& size_in_pixel); 246 void SetScaleAndSize(float scale, const gfx::Size& size_in_pixel);
247 247
248 // Set the output color profile into which this compositor should render. 248 // Set the output color profile into which this compositor should render.
249 void SetDisplayColorProfile(const gfx::ICCProfile& icc_profile); 249 void SetDisplayColorSpace(const gfx::ColorSpace& color_space);
250 250
251 // Returns the size of the widget that is being drawn to in pixel coordinates. 251 // Returns the size of the widget that is being drawn to in pixel coordinates.
252 const gfx::Size& size() const { return size_; } 252 const gfx::Size& size() const { return size_; }
253 253
254 // Sets the background color used for areas that aren't covered by 254 // Sets the background color used for areas that aren't covered by
255 // the |root_layer|. 255 // the |root_layer|.
256 void SetBackgroundColor(SkColor color); 256 void SetBackgroundColor(SkColor color);
257 257
258 // Sets the visibility of the underlying compositor. 258 // Sets the visibility of the underlying compositor.
259 void SetVisible(bool visible); 259 void SetVisible(bool visible);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 436 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
437 base::WeakPtrFactory<Compositor> lock_timeout_weak_ptr_factory_; 437 base::WeakPtrFactory<Compositor> lock_timeout_weak_ptr_factory_;
438 438
439 DISALLOW_COPY_AND_ASSIGN(Compositor); 439 DISALLOW_COPY_AND_ASSIGN(Compositor);
440 }; 440 };
441 441
442 } // namespace ui 442 } // namespace ui
443 443
444 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 444 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698