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

Side by Side Diff: content/renderer/render_widget_fullscreen_pepper.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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/renderer/render_widget_fullscreen_pepper.h" 5 #include "content/renderer/render_widget_fullscreen_pepper.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/renderer/gpu/renderer_gl_context.h" 9 #include "content/renderer/gpu/renderer_gl_context.h"
10 #include "content/renderer/gpu/gpu_channel_host.h" 10 #include "content/renderer/gpu/gpu_channel_host.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 const int32 attribs[] = { 336 const int32 attribs[] = {
337 RendererGLContext::ALPHA_SIZE, 8, 337 RendererGLContext::ALPHA_SIZE, 8,
338 RendererGLContext::DEPTH_SIZE, 0, 338 RendererGLContext::DEPTH_SIZE, 0,
339 RendererGLContext::STENCIL_SIZE, 0, 339 RendererGLContext::STENCIL_SIZE, 0,
340 RendererGLContext::SAMPLES, 0, 340 RendererGLContext::SAMPLES, 0,
341 RendererGLContext::SAMPLE_BUFFERS, 0, 341 RendererGLContext::SAMPLE_BUFFERS, 0,
342 RendererGLContext::NONE, 342 RendererGLContext::NONE,
343 }; 343 };
344 context_ = RendererGLContext::CreateViewContext( 344 context_ = RendererGLContext::CreateViewContext(
345 host, 345 host,
346 compositing_surface(),
347 routing_id(), 346 routing_id(),
348 "GL_OES_packed_depth_stencil GL_OES_depth24", 347 "GL_OES_packed_depth_stencil GL_OES_depth24",
349 attribs, 348 attribs,
350 active_url_); 349 active_url_);
351 if (!context_) 350 if (!context_)
352 return; 351 return;
353 352
354 if (!InitContext()) { 353 if (!InitContext()) {
355 DestroyContext(context_, program_, buffer_); 354 DestroyContext(context_, program_, buffer_);
356 context_ = NULL; 355 context_ = NULL;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 NewRunnableFunction(DestroyContext, context_, program_, buffer_)); 476 NewRunnableFunction(DestroyContext, context_, program_, buffer_));
478 context_ = NULL; 477 context_ = NULL;
479 program_ = 0; 478 program_ = 0;
480 buffer_ = 0; 479 buffer_ = 0;
481 OnSwapBuffersAborted(); 480 OnSwapBuffersAborted();
482 } 481 }
483 482
484 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { 483 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() {
485 OnSwapBuffersComplete(); 484 OnSwapBuffersComplete();
486 } 485 }
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698