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::OnBeginFrameDidNotProduceFrame( |
297 const cc::BeginFrameAck& ack) { | 297 const cc::BeginFrameAck& ack) { |
298 delegated_frame_host_->BeginFrameDidNotSwap(ack); | 298 delegated_frame_host_->BeginFrameDidNotProduceFrame(ack); |
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 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 void BrowserCompositorMac::OnBeginFrame(const cc::BeginFrameArgs& args) { | 439 void BrowserCompositorMac::OnBeginFrame(const cc::BeginFrameArgs& args) { |
440 client_->BrowserCompositorMacSendBeginFrame(args); | 440 client_->BrowserCompositorMacSendBeginFrame(args); |
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 |
OLD | NEW |