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

Side by Side Diff: content/renderer/android/synchronous_compositor_frame_sink.cc

Issue 2720803002: Pass returned resources to DidReceiveCompositorFrameAck (Closed)
Patch Set: c Created 3 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/android/synchronous_compositor_frame_sink.h" 5 #include "content/renderer/android/synchronous_compositor_frame_sink.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 455
456 bool SynchronousCompositorFrameSink::Send(IPC::Message* message) { 456 bool SynchronousCompositorFrameSink::Send(IPC::Message* message) {
457 DCHECK(CalledOnValidThread()); 457 DCHECK(CalledOnValidThread());
458 return sender_->Send(message); 458 return sender_->Send(message);
459 } 459 }
460 460
461 bool SynchronousCompositorFrameSink::CalledOnValidThread() const { 461 bool SynchronousCompositorFrameSink::CalledOnValidThread() const {
462 return thread_checker_.CalledOnValidThread(); 462 return thread_checker_.CalledOnValidThread();
463 } 463 }
464 464
465 void SynchronousCompositorFrameSink::DidReceiveCompositorFrameAck() {} 465 void SynchronousCompositorFrameSink::DidReceiveCompositorFrameAck(
466 const cc::ReturnedResourceArray& resources) {
467 ReclaimResources(resources);
468 }
466 469
467 void SynchronousCompositorFrameSink::OnBeginFrame( 470 void SynchronousCompositorFrameSink::OnBeginFrame(
468 const cc::BeginFrameArgs& args) {} 471 const cc::BeginFrameArgs& args) {}
469 472
470 void SynchronousCompositorFrameSink::ReclaimResources( 473 void SynchronousCompositorFrameSink::ReclaimResources(
471 const cc::ReturnedResourceArray& resources) { 474 const cc::ReturnedResourceArray& resources) {
472 DCHECK(resources.empty()); 475 DCHECK(resources.empty());
473 client_->ReclaimResources(resources); 476 client_->ReclaimResources(resources);
474 } 477 }
475 478
476 void SynchronousCompositorFrameSink::WillDrawSurface( 479 void SynchronousCompositorFrameSink::WillDrawSurface(
477 const cc::LocalSurfaceId& local_surface_id, 480 const cc::LocalSurfaceId& local_surface_id,
478 const gfx::Rect& damage_rect) {} 481 const gfx::Rect& damage_rect) {}
479 482
480 } // namespace content 483 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698