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

Side by Side Diff: Source/platform/graphics/gpu/WebGLImageConversion.h

Issue 1189053002: Upgrade WebGLImageConversion to ES3: Part I. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/platform/graphics/gpu/WebGLImageConversion.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef WebGLImageConversion_h 5 #ifndef WebGLImageConversion_h
6 #define WebGLImageConversion_h 6 #define WebGLImageConversion_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/graphics/Image.h" 9 #include "platform/graphics/Image.h"
10 #include "third_party/khronos/GLES2/gl2.h" 10 #include "third_party/khronos/GLES2/gl2.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 DataFormatRGB16F, 44 DataFormatRGB16F,
45 DataFormatRGB32F, 45 DataFormatRGB32F,
46 DataFormatBGR8, 46 DataFormatBGR8,
47 DataFormatBGRA8, 47 DataFormatBGRA8,
48 DataFormatARGB8, 48 DataFormatARGB8,
49 DataFormatABGR8, 49 DataFormatABGR8,
50 DataFormatRGBA5551, 50 DataFormatRGBA5551,
51 DataFormatRGBA4444, 51 DataFormatRGBA4444,
52 DataFormatRGB565, 52 DataFormatRGB565,
53 DataFormatRGB10F11F11F, 53 DataFormatRGB10F11F11F,
54 DataFormatRGB5999,
54 DataFormatRG8, 55 DataFormatRG8,
55 DataFormatRG8_S, 56 DataFormatRG8_S,
56 DataFormatRG16, 57 DataFormatRG16,
57 DataFormatRG16_S, 58 DataFormatRG16_S,
58 DataFormatRG32, 59 DataFormatRG32,
59 DataFormatRG32_S, 60 DataFormatRG32_S,
60 DataFormatRG16F, 61 DataFormatRG16F,
61 DataFormatRG32F, 62 DataFormatRG32F,
62 DataFormatR8, 63 DataFormatR8,
63 DataFormatR8_S, 64 DataFormatR8_S,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // A sourceUnpackAlignment of zero indicates that the source 194 // A sourceUnpackAlignment of zero indicates that the source
194 // data is tightly packed. Non-zero values may take a slow path. 195 // data is tightly packed. Non-zero values may take a slow path.
195 // Destination data will have no gaps between rows. 196 // Destination data will have no gaps between rows.
196 // Implemented in GraphicsContext3DImagePacking.cpp 197 // Implemented in GraphicsContext3DImagePacking.cpp
197 static bool packPixels(const uint8_t* sourceData, DataFormat sourceDataForma t, unsigned width, unsigned height, unsigned sourceUnpackAlignment, unsigned des tinationFormat, unsigned destinationType, AlphaOp, void* destinationData, bool f lipY); 198 static bool packPixels(const uint8_t* sourceData, DataFormat sourceDataForma t, unsigned width, unsigned height, unsigned sourceUnpackAlignment, unsigned des tinationFormat, unsigned destinationType, AlphaOp, void* destinationData, bool f lipY);
198 }; 199 };
199 200
200 } // namespace blink 201 } // namespace blink
201 202
202 #endif // WebGLImageConversion_h 203 #endif // WebGLImageConversion_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/gpu/WebGLImageConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698