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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1434453008: cc: Fix R_8 GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove GetResourceTextureTarget Created 5 years, 1 month 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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 5468 matching lines...) Expand 10 before | Expand all | Expand 10 after
5479 switch (internalformat) { 5479 switch (internalformat) {
5480 case GL_ATC_RGB_AMD: 5480 case GL_ATC_RGB_AMD:
5481 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: 5481 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD:
5482 return capabilities.texture_format_atc; 5482 return capabilities.texture_format_atc;
5483 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: 5483 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
5484 return capabilities.texture_format_dxt1; 5484 return capabilities.texture_format_dxt1;
5485 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: 5485 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
5486 return capabilities.texture_format_dxt5; 5486 return capabilities.texture_format_dxt5;
5487 case GL_ETC1_RGB8_OES: 5487 case GL_ETC1_RGB8_OES:
5488 return capabilities.texture_format_etc1; 5488 return capabilities.texture_format_etc1;
5489 case GL_R8: 5489 case GL_RED:
5490 case GL_RGB: 5490 case GL_RGB:
5491 case GL_RGBA: 5491 case GL_RGBA:
5492 case GL_RGB_YCBCR_422_CHROMIUM: 5492 case GL_RGB_YCBCR_422_CHROMIUM:
5493 case GL_BGRA_EXT: 5493 case GL_BGRA_EXT:
5494 return true; 5494 return true;
5495 default: 5495 default:
5496 return false; 5496 return false;
5497 } 5497 }
5498 } 5498 }
5499 5499
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
6361 CheckGLError(); 6361 CheckGLError();
6362 } 6362 }
6363 6363
6364 // Include the auto-generated part of this file. We split this because it means 6364 // Include the auto-generated part of this file. We split this because it means
6365 // we can easily edit the non-auto generated parts right here in this file 6365 // we can easily edit the non-auto generated parts right here in this file
6366 // instead of having to edit some template or the code generator. 6366 // instead of having to edit some template or the code generator.
6367 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 6367 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
6368 6368
6369 } // namespace gles2 6369 } // namespace gles2
6370 } // namespace gpu 6370 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt ('k') | gpu/command_buffer/service/image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698