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

Side by Side Diff: content/browser/renderer_host/compositing_iosurface_layer_mac.mm

Issue 165703002: Do not send a frame swap ack from the browser until the frame is drawn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dynamic_async
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/renderer_host/compositing_iosurface_layer_mac.h" 5 #include "content/browser/renderer_host/compositing_iosurface_layer_mac.h"
6 6
7 #include <CoreFoundation/CoreFoundation.h> 7 #include <CoreFoundation/CoreFoundation.h>
8 #include <OpenGL/gl.h> 8 #include <OpenGL/gl.h>
9 9
10 #include "base/mac/sdk_forward_declarations.h" 10 #include "base/mac/sdk_forward_declarations.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 context_, 169 context_,
170 window_rect, 170 window_rect,
171 window_scale_factor, 171 window_scale_factor,
172 false)) { 172 false)) {
173 renderWidgetHostView_->GotAcceleratedCompositingError(); 173 renderWidgetHostView_->GotAcceleratedCompositingError();
174 return; 174 return;
175 } 175 }
176 176
177 needsDisplay_ = NO; 177 needsDisplay_ = NO;
178 renderWidgetHostView_->SendPendingLatencyInfoToHost(); 178 renderWidgetHostView_->SendPendingLatencyInfoToHost();
179 renderWidgetHostView_->SendPendingSwapAck();
179 } 180 }
180 181
181 @end 182 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698