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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 9192014: Replace WGC3D visibility extension with resource_usage extension. [Part 2 of 3] (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added image_transport_surface_win changes Created 8 years, 11 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
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 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" 7 #include "webkit/gpu/webgraphicscontext3d_in_process_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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 return gl_->MapTexSubImage2DCHROMIUM( 900 return gl_->MapTexSubImage2DCHROMIUM(
901 target, level, xoffset, yoffset, width, height, format, type, access); 901 target, level, xoffset, yoffset, width, height, format, type, access);
902 } 902 }
903 903
904 void WebGraphicsContext3DInProcessCommandBufferImpl::unmapTexSubImage2DCHROMIUM( 904 void WebGraphicsContext3DInProcessCommandBufferImpl::unmapTexSubImage2DCHROMIUM(
905 const void* mem) { 905 const void* mem) {
906 ClearContext(); 906 ClearContext();
907 gl_->UnmapTexSubImage2DCHROMIUM(mem); 907 gl_->UnmapTexSubImage2DCHROMIUM(mem);
908 } 908 }
909 909
910 void WebGraphicsContext3DInProcessCommandBufferImpl::setVisibilityCHROMIUM( 910 void WebGraphicsContext3DInProcessCommandBufferImpl::setResourceUsageCHROMIUM(
911 bool visible) { 911 ResourceUsage resourceUsage) {
912 } 912 }
913 913
914 void WebGraphicsContext3DInProcessCommandBufferImpl:: 914 void WebGraphicsContext3DInProcessCommandBufferImpl::
915 copyTextureToParentTextureCHROMIUM(WebGLId texture, WebGLId parentTexture) { 915 copyTextureToParentTextureCHROMIUM(WebGLId texture, WebGLId parentTexture) {
916 NOTIMPLEMENTED(); 916 NOTIMPLEMENTED();
917 } 917 }
918 918
919 void WebGraphicsContext3DInProcessCommandBufferImpl:: 919 void WebGraphicsContext3DInProcessCommandBufferImpl::
920 rateLimitOffscreenContextCHROMIUM() { 920 rateLimitOffscreenContextCHROMIUM() {
921 // TODO(gmam): See if we can comment this in. 921 // TODO(gmam): See if we can comment this in.
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB; 1670 context_lost_reason_ = GL_UNKNOWN_CONTEXT_RESET_ARB;
1671 if (context_lost_callback_) { 1671 if (context_lost_callback_) {
1672 context_lost_callback_->onContextLost(); 1672 context_lost_callback_->onContextLost();
1673 } 1673 }
1674 } 1674 }
1675 1675
1676 } // namespace gpu 1676 } // namespace gpu
1677 } // namespace webkit 1677 } // namespace webkit
1678 1678
1679 #endif // defined(ENABLE_GPU) 1679 #endif // defined(ENABLE_GPU)
OLDNEW
« no previous file with comments | « webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h ('k') | webkit/gpu/webgraphicscontext3d_in_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698