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

Side by Side Diff: cc/output/delegating_renderer.cc

Issue 14092003: Add compositor support for the LatencyInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/output/delegating_renderer.h" 5 #include "cc/output/delegating_renderer.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 156
157 // Move the render passes and resources into the |out_frame|. 157 // Move the render passes and resources into the |out_frame|.
158 DelegatedFrameData& out_data = *out_frame.delegated_frame_data; 158 DelegatedFrameData& out_data = *out_frame.delegated_frame_data;
159 out_data.render_pass_list.swap(*render_passes_in_draw_order); 159 out_data.render_pass_list.swap(*render_passes_in_draw_order);
160 resource_provider_->PrepareSendToParent(resources, &out_data.resource_list); 160 resource_provider_->PrepareSendToParent(resources, &out_data.resource_list);
161 161
162 output_surface_->SendFrameToParentCompositor(&out_frame); 162 output_surface_->SendFrameToParentCompositor(&out_frame);
163 } 163 }
164 164
165 bool DelegatingRenderer::SwapBuffers() { 165 bool DelegatingRenderer::SwapBuffers(const LatencyInfo&) {
jamesr 2013/04/17 23:15:21 in chromium style, you want to include the variabl
166 return true; 166 return true;
167 } 167 }
168 168
169 void DelegatingRenderer::GetFramebufferPixels(void* pixels, gfx::Rect rect) { 169 void DelegatingRenderer::GetFramebufferPixels(void* pixels, gfx::Rect rect) {
170 NOTIMPLEMENTED(); 170 NOTIMPLEMENTED();
171 } 171 }
172 172
173 void DelegatingRenderer::ReceiveCompositorFrameAck( 173 void DelegatingRenderer::ReceiveCompositorFrameAck(
174 const CompositorFrameAck& ack) { 174 const CompositorFrameAck& ack) {
175 resource_provider_->ReceiveFromParent(ack.resources); 175 resource_provider_->ReceiveFromParent(ack.resources);
(...skipping 11 matching lines...) Expand all
187 187
188 void DelegatingRenderer::SetVisible(bool visible) { 188 void DelegatingRenderer::SetVisible(bool visible) {
189 visible_ = visible; 189 visible_ = visible;
190 } 190 }
191 191
192 void DelegatingRenderer::onContextLost() { 192 void DelegatingRenderer::onContextLost() {
193 client_->DidLoseOutputSurface(); 193 client_->DidLoseOutputSurface();
194 } 194 }
195 195
196 } // namespace cc 196 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698