| OLD | NEW |
| 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 } | 286 } |
| 287 | 287 |
| 288 void BrowserCompositorMac::SetHasTransparentBackground(bool transparent) { | 288 void BrowserCompositorMac::SetHasTransparentBackground(bool transparent) { |
| 289 has_transparent_background_ = transparent; | 289 has_transparent_background_ = transparent; |
| 290 if (recyclable_compositor_) { | 290 if (recyclable_compositor_) { |
| 291 recyclable_compositor_->compositor()->SetHostHasTransparentBackground( | 291 recyclable_compositor_->compositor()->SetHostHasTransparentBackground( |
| 292 has_transparent_background_); | 292 has_transparent_background_); |
| 293 } | 293 } |
| 294 } | 294 } |
| 295 | 295 |
| 296 void BrowserCompositorMac::SetDisplayColorSpace( | 296 void BrowserCompositorMac::SetDisplayColorProfile( |
| 297 const gfx::ColorSpace& color_space) { | 297 const gfx::ICCProfile& icc_profile) { |
| 298 if (recyclable_compositor_) | 298 if (recyclable_compositor_) |
| 299 recyclable_compositor_->compositor()->SetDisplayColorSpace(color_space); | 299 recyclable_compositor_->compositor()->SetDisplayColorProfile(icc_profile); |
| 300 } | 300 } |
| 301 | 301 |
| 302 void BrowserCompositorMac::UpdateVSyncParameters( | 302 void BrowserCompositorMac::UpdateVSyncParameters( |
| 303 const base::TimeTicks& timebase, | 303 const base::TimeTicks& timebase, |
| 304 const base::TimeDelta& interval) { | 304 const base::TimeDelta& interval) { |
| 305 if (recyclable_compositor_) { | 305 if (recyclable_compositor_) { |
| 306 recyclable_compositor_->compositor()->SetDisplayVSyncParameters( | 306 recyclable_compositor_->compositor()->SetDisplayVSyncParameters( |
| 307 timebase, interval); | 307 timebase, interval); |
| 308 } | 308 } |
| 309 } | 309 } |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 | 468 |
| 469 const cc::BeginFrameArgs& BrowserCompositorMac::LastUsedBeginFrameArgs() const { | 469 const cc::BeginFrameArgs& BrowserCompositorMac::LastUsedBeginFrameArgs() const { |
| 470 return last_begin_frame_args_; | 470 return last_begin_frame_args_; |
| 471 } | 471 } |
| 472 | 472 |
| 473 void BrowserCompositorMac::OnBeginFrameSourcePausedChanged(bool paused) { | 473 void BrowserCompositorMac::OnBeginFrameSourcePausedChanged(bool paused) { |
| 474 // Only used on Android WebView. | 474 // Only used on Android WebView. |
| 475 } | 475 } |
| 476 | 476 |
| 477 } // namespace content | 477 } // namespace content |
| OLD | NEW |