| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |