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

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

Issue 1708263002: gpu: Expose internal format R8 instead of RED. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to 'Address reveman's comments'. Created 4 years, 10 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 // 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 5653 matching lines...) Expand 10 before | Expand all | Expand 10 after
5664 switch (internalformat) { 5664 switch (internalformat) {
5665 case GL_ATC_RGB_AMD: 5665 case GL_ATC_RGB_AMD:
5666 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD: 5666 case GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD:
5667 return capabilities.texture_format_atc; 5667 return capabilities.texture_format_atc;
5668 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: 5668 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:
5669 return capabilities.texture_format_dxt1; 5669 return capabilities.texture_format_dxt1;
5670 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: 5670 case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:
5671 return capabilities.texture_format_dxt5; 5671 return capabilities.texture_format_dxt5;
5672 case GL_ETC1_RGB8_OES: 5672 case GL_ETC1_RGB8_OES:
5673 return capabilities.texture_format_etc1; 5673 return capabilities.texture_format_etc1;
5674 case GL_RED: 5674 case GL_R8:
5675 case GL_RGB: 5675 case GL_RGB:
5676 case GL_RGBA: 5676 case GL_RGBA:
5677 case GL_RGB_YCBCR_422_CHROMIUM: 5677 case GL_RGB_YCBCR_422_CHROMIUM:
5678 case GL_RGB_YCBCR_420V_CHROMIUM: 5678 case GL_RGB_YCBCR_420V_CHROMIUM:
5679 case GL_BGRA_EXT: 5679 case GL_BGRA_EXT:
5680 return true; 5680 return true;
5681 default: 5681 default:
5682 return false; 5682 return false;
5683 } 5683 }
5684 } 5684 }
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
6547 CheckGLError(); 6547 CheckGLError();
6548 } 6548 }
6549 6549
6550 // Include the auto-generated part of this file. We split this because it means 6550 // Include the auto-generated part of this file. We split this because it means
6551 // we can easily edit the non-auto generated parts right here in this file 6551 // we can easily edit the non-auto generated parts right here in this file
6552 // instead of having to edit some template or the code generator. 6552 // instead of having to edit some template or the code generator.
6553 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 6553 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
6554 6554
6555 } // namespace gles2 6555 } // namespace gles2
6556 } // namespace gpu 6556 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698