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

Side by Side Diff: cc/test/layer_tree_test.cc

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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
« no previous file with comments | « cc/test/fake_output_surface_client.h ('k') | cc/test/test_delegating_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/test/layer_tree_test.h" 5 #include "cc/test/layer_tree_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 void DrawLayers(FrameData* frame) override { 240 void DrawLayers(FrameData* frame) override {
241 LayerTreeHostImpl::DrawLayers(frame); 241 LayerTreeHostImpl::DrawLayers(frame);
242 test_hooks_->DrawLayersOnThread(this); 242 test_hooks_->DrawLayersOnThread(this);
243 } 243 }
244 244
245 void DidSwapBuffersComplete() override { 245 void DidSwapBuffersComplete() override {
246 LayerTreeHostImpl::DidSwapBuffersComplete(); 246 LayerTreeHostImpl::DidSwapBuffersComplete();
247 test_hooks_->SwapBuffersCompleteOnThread(); 247 test_hooks_->SwapBuffersCompleteOnThread();
248 } 248 }
249 249
250 void ReclaimResources(const CompositorFrameAck* ack) override { 250 void ReclaimResources(const ReturnedResourceArray& resources) override {
251 LayerTreeHostImpl::ReclaimResources(ack); 251 LayerTreeHostImpl::ReclaimResources(resources);
252 } 252 }
253 253
254 void NotifyReadyToActivate() override { 254 void NotifyReadyToActivate() override {
255 if (block_notify_ready_to_activate_for_testing_) { 255 if (block_notify_ready_to_activate_for_testing_) {
256 notify_ready_to_activate_was_blocked_ = true; 256 notify_ready_to_activate_was_blocked_ = true;
257 } else { 257 } else {
258 LayerTreeHostImpl::NotifyReadyToActivate(); 258 LayerTreeHostImpl::NotifyReadyToActivate();
259 test_hooks_->NotifyReadyToActivateOnThread(this); 259 test_hooks_->NotifyReadyToActivateOnThread(this);
260 } 260 }
261 } 261 }
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 1022
1023 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const { 1023 RemoteChannelImplForTest* LayerTreeTest::GetRemoteChannelImplForTest() const {
1024 DCHECK(IsRemoteTest()); 1024 DCHECK(IsRemoteTest());
1025 DCHECK(remote_client_layer_tree_host_); 1025 DCHECK(remote_client_layer_tree_host_);
1026 1026
1027 return static_cast<RemoteChannelImplForTest*>( 1027 return static_cast<RemoteChannelImplForTest*>(
1028 remote_client_layer_tree_host_->proxy()); 1028 remote_client_layer_tree_host_->proxy());
1029 } 1029 }
1030 1030
1031 } // namespace cc 1031 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface_client.h ('k') | cc/test/test_delegating_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698