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

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

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: send SurfaceRel from Destroy(), hold GLContext ref for cleanup so surface is compatible Created 8 years, 1 month 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698