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

Unified Diff: content/common/gpu/image_transport_surface_mac.cc

Issue 12383042: Switch all contexts in a share group to be on the same screen as the window they present to. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
Index: content/common/gpu/image_transport_surface_mac.cc
diff --git a/content/common/gpu/image_transport_surface_mac.cc b/content/common/gpu/image_transport_surface_mac.cc
index 2bb57945aaac684a145c302239bc114a0ffcefb5..0dae35a87f53db594cb12d16ec811fa8d1908ae4 100644
--- a/content/common/gpu/image_transport_surface_mac.cc
+++ b/content/common/gpu/image_transport_surface_mac.cc
@@ -270,8 +270,10 @@ gfx::Size IOSurfaceImageTransportSurface::GetSize() {
}
void IOSurfaceImageTransportSurface::OnBufferPresented(
- const AcceleratedSurfaceMsg_BufferPresented_Params& /* params */) {
+ const AcceleratedSurfaceMsg_BufferPresented_Params& params) {
DCHECK(is_swap_buffers_pending_);
+
+ context_->share_group()->SetRenderer(params.renderer);
Ken Russell (switch to Gerrit) 2013/03/01 22:00:58 Please rename SetRenderer -> SetRendererID for cla
is_swap_buffers_pending_ = false;
if (did_unschedule_) {
did_unschedule_ = false;

Powered by Google App Engine
This is Rietveld 408576698