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

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

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. Created 3 years, 7 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/browser_compositor_view_mac.h ('k') | content/browser/renderer_host/delegated_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698