| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/render_widget_host_view_mac.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h" |
| 6 | 6 |
| 7 #include <QuartzCore/QuartzCore.h> | 7 #include <QuartzCore/QuartzCore.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 return true; | 1068 return true; |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 void RenderWidgetHostViewMac::AckPendingSwapBuffers() { | 1071 void RenderWidgetHostViewMac::AckPendingSwapBuffers() { |
| 1072 TRACE_EVENT0("browser", "RenderWidgetHostViewMac::AckPendingSwapBuffers"); | 1072 TRACE_EVENT0("browser", "RenderWidgetHostViewMac::AckPendingSwapBuffers"); |
| 1073 while (!pending_swap_buffers_acks_.empty()) { | 1073 while (!pending_swap_buffers_acks_.empty()) { |
| 1074 if (pending_swap_buffers_acks_.front().first != 0) { | 1074 if (pending_swap_buffers_acks_.front().first != 0) { |
| 1075 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 1075 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
| 1076 pending_swap_buffers_acks_.front().first, | 1076 pending_swap_buffers_acks_.front().first, |
| 1077 pending_swap_buffers_acks_.front().second, | 1077 pending_swap_buffers_acks_.front().second, |
| 1078 true, | 1078 0, |
| 1079 0); | 1079 0); |
| 1080 if (render_widget_host_) { | 1080 if (render_widget_host_) { |
| 1081 render_widget_host_->AcknowledgeSwapBuffersToRenderer(); | 1081 render_widget_host_->AcknowledgeSwapBuffersToRenderer(); |
| 1082 | 1082 |
| 1083 // Send VSync parameters to compositor thread. | 1083 // Send VSync parameters to compositor thread. |
| 1084 if (compositing_iosurface_.get()) { | 1084 if (compositing_iosurface_.get()) { |
| 1085 base::TimeTicks timebase; | 1085 base::TimeTicks timebase; |
| 1086 uint32 numerator = 0, denominator = 0; | 1086 uint32 numerator = 0, denominator = 0; |
| 1087 compositing_iosurface_->GetVSyncParameters(&timebase, | 1087 compositing_iosurface_->GetVSyncParameters(&timebase, |
| 1088 &numerator, | 1088 &numerator, |
| (...skipping 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3362 if (!string) return NO; | 3362 if (!string) return NO; |
| 3363 | 3363 |
| 3364 // If the user is currently using an IME, confirm the IME input, | 3364 // If the user is currently using an IME, confirm the IME input, |
| 3365 // and then insert the text from the service, the same as TextEdit and Safari. | 3365 // and then insert the text from the service, the same as TextEdit and Safari. |
| 3366 [self confirmComposition]; | 3366 [self confirmComposition]; |
| 3367 [self insertText:string]; | 3367 [self insertText:string]; |
| 3368 return YES; | 3368 return YES; |
| 3369 } | 3369 } |
| 3370 | 3370 |
| 3371 @end | 3371 @end |
| OLD | NEW |