| 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 gfx::Size dip_size = gfx::ConvertSizeToDIP(scale_factor, pixel_size); | 286 gfx::Size dip_size = gfx::ConvertSizeToDIP(scale_factor, pixel_size); |
| 287 root_layer_->SetBounds(gfx::Rect(dip_size)); | 287 root_layer_->SetBounds(gfx::Rect(dip_size)); |
| 288 if (recyclable_compositor_) { | 288 if (recyclable_compositor_) { |
| 289 recyclable_compositor_->compositor()->SetScaleAndSize(scale_factor, | 289 recyclable_compositor_->compositor()->SetScaleAndSize(scale_factor, |
| 290 pixel_size); | 290 pixel_size); |
| 291 } | 291 } |
| 292 delegated_frame_host_->SubmitCompositorFrame(local_surface_id, | 292 delegated_frame_host_->SubmitCompositorFrame(local_surface_id, |
| 293 std::move(frame)); | 293 std::move(frame)); |
| 294 } | 294 } |
| 295 | 295 |
| 296 void BrowserCompositorMac::OnBeginFrameDidNotSwap( | 296 void BrowserCompositorMac::OnDidNotProduceFrame(const cc::BeginFrameAck& ack) { |
| 297 const cc::BeginFrameAck& ack) { | 297 delegated_frame_host_->DidNotProduceFrame(ack); |
| 298 delegated_frame_host_->BeginFrameDidNotSwap(ack); | |
| 299 } | 298 } |
| 300 | 299 |
| 301 void BrowserCompositorMac::SetHasTransparentBackground(bool transparent) { | 300 void BrowserCompositorMac::SetHasTransparentBackground(bool transparent) { |
| 302 has_transparent_background_ = transparent; | 301 has_transparent_background_ = transparent; |
| 303 if (recyclable_compositor_) { | 302 if (recyclable_compositor_) { |
| 304 recyclable_compositor_->compositor()->SetHostHasTransparentBackground( | 303 recyclable_compositor_->compositor()->SetHostHasTransparentBackground( |
| 305 has_transparent_background_); | 304 has_transparent_background_); |
| 306 } | 305 } |
| 307 } | 306 } |
| 308 | 307 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 void BrowserCompositorMac::OnBeginFrame(const cc::BeginFrameArgs& args) { | 438 void BrowserCompositorMac::OnBeginFrame(const cc::BeginFrameArgs& args) { |
| 440 client_->BrowserCompositorMacSendBeginFrame(args); | 439 client_->BrowserCompositorMacSendBeginFrame(args); |
| 441 } | 440 } |
| 442 | 441 |
| 443 bool BrowserCompositorMac::IsAutoResizeEnabled() const { | 442 bool BrowserCompositorMac::IsAutoResizeEnabled() const { |
| 444 NOTREACHED(); | 443 NOTREACHED(); |
| 445 return false; | 444 return false; |
| 446 } | 445 } |
| 447 | 446 |
| 448 } // namespace content | 447 } // namespace content |
| OLD | NEW |