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

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

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 #include "content/browser/renderer_host/browser_compositor_view_mac.h" 5 #include "content/browser/renderer_host/browser_compositor_view_mac.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 } 299 }
300 300
301 void BrowserCompositorMac::SetHasTransparentBackground(bool transparent) { 301 void BrowserCompositorMac::SetHasTransparentBackground(bool transparent) {
302 has_transparent_background_ = transparent; 302 has_transparent_background_ = transparent;
303 if (recyclable_compositor_) { 303 if (recyclable_compositor_) {
304 recyclable_compositor_->compositor()->SetHostHasTransparentBackground( 304 recyclable_compositor_->compositor()->SetHostHasTransparentBackground(
305 has_transparent_background_); 305 has_transparent_background_);
306 } 306 }
307 } 307 }
308 308
309 void BrowserCompositorMac::SetDisplayColorProfile( 309 void BrowserCompositorMac::SetDisplayColorSpace(
310 const gfx::ICCProfile& icc_profile) { 310 const gfx::ColorSpace& color_space) {
311 if (recyclable_compositor_) 311 if (recyclable_compositor_)
312 recyclable_compositor_->compositor()->SetDisplayColorProfile(icc_profile); 312 recyclable_compositor_->compositor()->SetDisplayColorSpace(color_space);
313 } 313 }
314 314
315 void BrowserCompositorMac::UpdateVSyncParameters( 315 void BrowserCompositorMac::UpdateVSyncParameters(
316 const base::TimeTicks& timebase, 316 const base::TimeTicks& timebase,
317 const base::TimeDelta& interval) { 317 const base::TimeDelta& interval) {
318 if (recyclable_compositor_) { 318 if (recyclable_compositor_) {
319 recyclable_compositor_->compositor()->SetDisplayVSyncParameters( 319 recyclable_compositor_->compositor()->SetDisplayVSyncParameters(
320 timebase, interval); 320 timebase, interval);
321 } 321 }
322 } 322 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 void BrowserCompositorMac::OnBeginFrame() { 439 void BrowserCompositorMac::OnBeginFrame() {
440 client_->BrowserCompositorMacOnBeginFrame(); 440 client_->BrowserCompositorMacOnBeginFrame();
441 } 441 }
442 442
443 bool BrowserCompositorMac::IsAutoResizeEnabled() const { 443 bool BrowserCompositorMac::IsAutoResizeEnabled() const {
444 NOTREACHED(); 444 NOTREACHED();
445 return false; 445 return false;
446 } 446 }
447 447
448 } // namespace content 448 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698