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

Side by Side Diff: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc

Issue 7136001: GPU compositing surface handle is no longer sent to renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" 7 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #ifndef GL_GLEXT_PROTOTYPES 10 #ifndef GL_GLEXT_PROTOTYPES
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 active_url = GURL(web_view->mainFrame()->url()); 105 active_url = GURL(web_view->mainFrame()->url());
106 106
107 if (render_directly_to_web_view) { 107 if (render_directly_to_web_view) {
108 RenderView* renderview = RenderView::FromWebView(web_view); 108 RenderView* renderview = RenderView::FromWebView(web_view);
109 if (!renderview) 109 if (!renderview)
110 return false; 110 return false;
111 111
112 web_view_ = web_view; 112 web_view_ = web_view;
113 context_ = RendererGLContext::CreateViewContext( 113 context_ = RendererGLContext::CreateViewContext(
114 host, 114 host,
115 renderview->compositing_surface(),
116 renderview->routing_id(), 115 renderview->routing_id(),
117 preferred_extensions, 116 preferred_extensions,
118 attribs, 117 attribs,
119 active_url); 118 active_url);
120 if (context_) { 119 if (context_) {
121 context_->SetSwapBuffersCallback( 120 context_->SetSwapBuffersCallback(
122 NewCallback(this, 121 NewCallback(this,
123 &WebGraphicsContext3DCommandBufferImpl::OnSwapBuffersComplete)); 122 &WebGraphicsContext3DCommandBufferImpl::OnSwapBuffersComplete));
124 } 123 }
125 } else { 124 } else {
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 context_lost_callback_->onContextLost(); 1028 context_lost_callback_->onContextLost();
1030 } 1029 }
1031 1030
1032 RenderView* renderview = 1031 RenderView* renderview =
1033 web_view_ ? RenderView::FromWebView(web_view_) : NULL; 1032 web_view_ ? RenderView::FromWebView(web_view_) : NULL;
1034 if (renderview) 1033 if (renderview)
1035 renderview->OnViewContextSwapBuffersAborted(); 1034 renderview->OnViewContextSwapBuffersAborted();
1036 } 1035 }
1037 1036
1038 #endif // defined(ENABLE_GPU) 1037 #endif // defined(ENABLE_GPU)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698