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

Unified Diff: content/browser/compositor/gpu_browser_compositor_output_surface.cc

Issue 2693023002: Use SwapBuffersWithBounds on Chromecast (Closed)
Patch Set: danakj nits Created 3 years, 10 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 | « components/display_compositor/compositor_overlay_candidate_validator_ozone.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/gpu_browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.cc b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
index d663726cda9947827ee1887f72fb2562a3b4ffbd..ffe7868eed676f07b6af225c5df53c664924f8ae 100644
--- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
@@ -116,8 +116,11 @@ void GpuBrowserCompositorOutputSurface::SwapBuffers(
}
if (frame.sub_buffer_rect) {
+ DCHECK(frame.content_bounds.empty());
context_provider_->ContextSupport()->PartialSwapBuffers(
*frame.sub_buffer_rect);
+ } else if (!frame.content_bounds.empty()) {
+ context_provider_->ContextSupport()->SwapWithBounds(frame.content_bounds);
} else {
context_provider_->ContextSupport()->Swap();
}
« no previous file with comments | « components/display_compositor/compositor_overlay_candidate_validator_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698