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

Side by Side Diff: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.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 #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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 target, level, xoffset, yoffset, width, height, format, type, access); 347 target, level, xoffset, yoffset, width, height, format, type, access);
348 } 348 }
349 349
350 void WebGraphicsContext3DCommandBufferImpl::unmapTexSubImage2DCHROMIUM( 350 void WebGraphicsContext3DCommandBufferImpl::unmapTexSubImage2DCHROMIUM(
351 const void* mem) { 351 const void* mem) {
352 gl_->UnmapTexSubImage2DCHROMIUM(mem); 352 gl_->UnmapTexSubImage2DCHROMIUM(mem);
353 } 353 }
354 354
355 void WebGraphicsContext3DCommandBufferImpl::copyTextureToParentTextureCHROMIUM( 355 void WebGraphicsContext3DCommandBufferImpl::copyTextureToParentTextureCHROMIUM(
356 WebGLId texture, WebGLId parentTexture) { 356 WebGLId texture, WebGLId parentTexture) {
357 TRACE_EVENT0("gpu", "WebGfxCtx3DCmdBfrImpl::copyTextureToCompositor"); 357 NOTIMPLEMENTED();
358 gl_->CopyTextureToParentTextureCHROMIUM(texture, parentTexture);
359 gl_->Flush();
360 } 358 }
361 359
362 void WebGraphicsContext3DCommandBufferImpl:: 360 void WebGraphicsContext3DCommandBufferImpl::
363 rateLimitOffscreenContextCHROMIUM() { 361 rateLimitOffscreenContextCHROMIUM() {
364 gl_->RateLimitOffscreenContextCHROMIUM(); 362 gl_->RateLimitOffscreenContextCHROMIUM();
365 } 363 }
366 364
367 WebKit::WebString WebGraphicsContext3DCommandBufferImpl:: 365 WebKit::WebString WebGraphicsContext3DCommandBufferImpl::
368 getRequestableExtensionsCHROMIUM() { 366 getRequestableExtensionsCHROMIUM() {
369 return WebKit::WebString::fromUTF8( 367 return WebKit::WebString::fromUTF8(
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 context_lost_callback_->onContextLost(); 1047 context_lost_callback_->onContextLost();
1050 } 1048 }
1051 1049
1052 RenderView* renderview = 1050 RenderView* renderview =
1053 web_view_ ? RenderView::FromWebView(web_view_) : NULL; 1051 web_view_ ? RenderView::FromWebView(web_view_) : NULL;
1054 if (renderview) 1052 if (renderview)
1055 renderview->OnViewContextSwapBuffersAborted(); 1053 renderview->OnViewContextSwapBuffersAborted();
1056 } 1054 }
1057 1055
1058 #endif // defined(ENABLE_GPU) 1056 #endif // defined(ENABLE_GPU)
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | gpu/command_buffer/common/gles2_cmd_ids_autogen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698