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

Unified Diff: cc/output/delegating_renderer.cc

Issue 16304003: Unified OutputSurface::SwapBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 205473 Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/delegating_renderer.h ('k') | cc/output/gl_frame_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/delegating_renderer.cc
diff --git a/cc/output/delegating_renderer.cc b/cc/output/delegating_renderer.cc
index ba2c4eca392d9528d19363c998a393a6bf0c4731..3cb6b4f69682328b765bc9e144cc8662f3bfe1f2 100644
--- a/cc/output/delegating_renderer.cc
+++ b/cc/output/delegating_renderer.cc
@@ -53,8 +53,6 @@ bool DelegatingRenderer::Initialize() {
capabilities_.using_partial_swap = false;
// TODO(danakj): Throttling - we may want to only allow 1 outstanding frame,
// but the parent compositor may pipeline for us.
- // TODO(danakj): Can we use this in single-thread mode?
- capabilities_.using_swap_complete_callback = true;
capabilities_.max_texture_size = resource_provider_->max_texture_size();
capabilities_.best_texture_format = resource_provider_->best_texture_format();
capabilities_.allow_partial_texture_updates = false;
@@ -156,10 +154,10 @@ void DelegatingRenderer::DrawFrame(
resource_provider_->PrepareSendToParent(resources, &out_data.resource_list);
}
-void DelegatingRenderer::SwapBuffers(const ui::LatencyInfo& latency_info) {
+void DelegatingRenderer::SwapBuffers() {
TRACE_EVENT0("cc", "DelegatingRenderer::SwapBuffers");
- output_surface_->SendFrameToParentCompositor(&frame_for_swap_buffers_);
+ output_surface_->SwapBuffers(&frame_for_swap_buffers_);
frame_for_swap_buffers_.delegated_frame_data.reset();
}
@@ -167,7 +165,7 @@ void DelegatingRenderer::GetFramebufferPixels(void* pixels, gfx::Rect rect) {
NOTREACHED();
}
-void DelegatingRenderer::ReceiveCompositorFrameAck(
+void DelegatingRenderer::ReceiveSwapBuffersAck(
const CompositorFrameAck& ack) {
resource_provider_->ReceiveFromParent(ack.resources);
}
« no previous file with comments | « cc/output/delegating_renderer.h ('k') | cc/output/gl_frame_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698