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

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
« no previous file with comments | « cc/output/delegating_renderer.h ('k') | cc/output/gl_renderer.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 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 } 150 }
151 151
152 // Move the render passes and resources into the |out_frame|. 152 // Move the render passes and resources into the |out_frame|.
153 DelegatedFrameData& out_data = *out_frame.delegated_frame_data; 153 DelegatedFrameData& out_data = *out_frame.delegated_frame_data;
154 out_data.render_pass_list.swap(*render_passes_in_draw_order); 154 out_data.render_pass_list.swap(*render_passes_in_draw_order);
155 resource_provider_->PrepareSendToParent(resources, &out_data.resource_list); 155 resource_provider_->PrepareSendToParent(resources, &out_data.resource_list);
156 156
157 output_surface_->SendFrameToParentCompositor(&out_frame); 157 output_surface_->SendFrameToParentCompositor(&out_frame);
158 } 158 }
159 159
160 bool DelegatingRenderer::SwapBuffers() { 160 bool DelegatingRenderer::SwapBuffers(const LatencyInfo& latency_info) {
161 return true; 161 return true;
162 } 162 }
163 163
164 void DelegatingRenderer::GetFramebufferPixels(void* pixels, gfx::Rect rect) { 164 void DelegatingRenderer::GetFramebufferPixels(void* pixels, gfx::Rect rect) {
165 NOTIMPLEMENTED(); 165 NOTIMPLEMENTED();
166 } 166 }
167 167
168 void DelegatingRenderer::ReceiveCompositorFrameAck( 168 void DelegatingRenderer::ReceiveCompositorFrameAck(
169 const CompositorFrameAck& ack) { 169 const CompositorFrameAck& ack) {
170 resource_provider_->ReceiveFromParent(ack.resources); 170 resource_provider_->ReceiveFromParent(ack.resources);
171 } 171 }
172 172
173 173
174 bool DelegatingRenderer::IsContextLost() { 174 bool DelegatingRenderer::IsContextLost() {
175 WebGraphicsContext3D* context3d = resource_provider_->GraphicsContext3D(); 175 WebGraphicsContext3D* context3d = resource_provider_->GraphicsContext3D();
176 if (!context3d) 176 if (!context3d)
177 return false; 177 return false;
178 return context3d->getGraphicsResetStatusARB() != GL_NO_ERROR; 178 return context3d->getGraphicsResetStatusARB() != GL_NO_ERROR;
179 } 179 }
180 180
181 void DelegatingRenderer::SetVisible(bool visible) { 181 void DelegatingRenderer::SetVisible(bool visible) {
182 visible_ = visible; 182 visible_ = visible;
183 } 183 }
184 184
185 } // namespace cc 185 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.h ('k') | cc/output/gl_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698