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

Side by Side Diff: content/renderer/render_widget_fullscreen_pepper.cc

Issue 7538008: Delete copy_texture_to_parent_texture from GPU command buffer code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 #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/gpu_channel_host.h" 9 #include "content/renderer/gpu/gpu_channel_host.h"
10 #include "content/renderer/pepper_platform_context_3d_impl.h" 10 #include "content/renderer/pepper_platform_context_3d_impl.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 RendererGLContext::ALPHA_SIZE, 8, 339 RendererGLContext::ALPHA_SIZE, 8,
340 RendererGLContext::DEPTH_SIZE, 0, 340 RendererGLContext::DEPTH_SIZE, 0,
341 RendererGLContext::STENCIL_SIZE, 0, 341 RendererGLContext::STENCIL_SIZE, 0,
342 RendererGLContext::SAMPLES, 0, 342 RendererGLContext::SAMPLES, 0,
343 RendererGLContext::SAMPLE_BUFFERS, 0, 343 RendererGLContext::SAMPLE_BUFFERS, 0,
344 RendererGLContext::NONE, 344 RendererGLContext::NONE,
345 }; 345 };
346 context_ = RendererGLContext::CreateViewContext( 346 context_ = RendererGLContext::CreateViewContext(
347 host, 347 host,
348 routing_id(), 348 routing_id(),
349 false,
349 NULL, 350 NULL,
350 "GL_OES_packed_depth_stencil GL_OES_depth24", 351 "GL_OES_packed_depth_stencil GL_OES_depth24",
351 attribs, 352 attribs,
352 active_url_); 353 active_url_);
353 if (!context_) 354 if (!context_)
354 return; 355 return;
355 356
356 if (!InitContext()) { 357 if (!InitContext()) {
357 DestroyContext(context_, program_, buffer_); 358 DestroyContext(context_, program_, buffer_);
358 context_ = NULL; 359 context_ = NULL;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 NewRunnableFunction(DestroyContext, context_, program_, buffer_)); 487 NewRunnableFunction(DestroyContext, context_, program_, buffer_));
487 context_ = NULL; 488 context_ = NULL;
488 program_ = 0; 489 program_ = 0;
489 buffer_ = 0; 490 buffer_ = 0;
490 OnSwapBuffersAborted(); 491 OnSwapBuffersAborted();
491 } 492 }
492 493
493 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { 494 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() {
494 OnSwapBuffersComplete(); 495 OnSwapBuffersComplete();
495 } 496 }
OLDNEW
« no previous file with comments | « content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698