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

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

Issue 16845005: Don't use a sleep in the browser's main thread to throttle swapbuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve against head 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/compositing_iosurface_mac.mm » ('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 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 8
9 #include "base/mac/sdk_forward_declarations.h" 9 #include "base/mac/sdk_forward_declarations.h"
10 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 10 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 float window_scale_factor = 1.f; 112 float window_scale_factor = 1.f;
113 if ([self respondsToSelector:(@selector(contentsScale))]) 113 if ([self respondsToSelector:(@selector(contentsScale))])
114 window_scale_factor = [self contentsScale]; 114 window_scale_factor = [self contentsScale];
115 115
116 renderWidgetHostView_->compositing_iosurface_->DrawIOSurface( 116 renderWidgetHostView_->compositing_iosurface_->DrawIOSurface(
117 window_size, 117 window_size,
118 window_scale_factor, 118 window_scale_factor,
119 renderWidgetHostView_->frame_subscriber(), 119 renderWidgetHostView_->frame_subscriber(),
120 true); 120 true);
121 121
122 renderWidgetHostView_->AckPendingSwapBuffers(); 122 renderWidgetHostView_->ThrottledAckPendingSwapBuffers();
123 } 123 }
124 124
125 @end 125 @end
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/compositing_iosurface_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698