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

Side by Side Diff: cc/test/test_delegating_output_surface.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/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_impl.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/test_delegating_output_surface.h" 5 #include "cc/test/test_delegating_output_surface.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "cc/output/begin_frame_args.h" 10 #include "cc/output/begin_frame_args.h"
11 #include "cc/output/compositor_frame_ack.h"
12 #include "cc/test/begin_frame_args_test.h" 11 #include "cc/test/begin_frame_args_test.h"
13 12
14 static constexpr uint32_t kCompositorClientId = 1; 13 static constexpr uint32_t kCompositorClientId = 1;
15 14
16 namespace cc { 15 namespace cc {
17 16
18 TestDelegatingOutputSurface::TestDelegatingOutputSurface( 17 TestDelegatingOutputSurface::TestDelegatingOutputSurface(
19 scoped_refptr<ContextProvider> compositor_context_provider, 18 scoped_refptr<ContextProvider> compositor_context_provider,
20 scoped_refptr<ContextProvider> worker_context_provider, 19 scoped_refptr<ContextProvider> worker_context_provider,
21 std::unique_ptr<Display> display, 20 std::unique_ptr<Display> display,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 111 }
113 112
114 uint32_t TestDelegatingOutputSurface::GetFramebufferCopyTextureFormat() { 113 uint32_t TestDelegatingOutputSurface::GetFramebufferCopyTextureFormat() {
115 // This is a delegating output surface, no framebuffer/direct drawing support. 114 // This is a delegating output surface, no framebuffer/direct drawing support.
116 NOTREACHED(); 115 NOTREACHED();
117 return 0; 116 return 0;
118 } 117 }
119 118
120 void TestDelegatingOutputSurface::ReturnResources( 119 void TestDelegatingOutputSurface::ReturnResources(
121 const ReturnedResourceArray& resources) { 120 const ReturnedResourceArray& resources) {
122 CompositorFrameAck ack; 121 client_->ReclaimResources(resources);
123 ack.resources = resources;
124 client_->ReclaimResources(&ack);
125 } 122 }
126 123
127 void TestDelegatingOutputSurface::SetBeginFrameSource( 124 void TestDelegatingOutputSurface::SetBeginFrameSource(
128 BeginFrameSource* begin_frame_source) { 125 BeginFrameSource* begin_frame_source) {
129 client_->SetBeginFrameSource(begin_frame_source); 126 client_->SetBeginFrameSource(begin_frame_source);
130 } 127 }
131 128
132 } // namespace cc 129 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698