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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 1925093002: Handle compressed textures allocated via TexStorage2D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move IsCompressedTextureFormat into GLES2Decoder. Created 4 years, 7 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 // This file contains the GLES2Decoder class. 5 // This file contains the GLES2Decoder class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 virtual bool ClearLevel(Texture* texture, 238 virtual bool ClearLevel(Texture* texture,
239 unsigned target, 239 unsigned target,
240 int level, 240 int level,
241 unsigned format, 241 unsigned format,
242 unsigned type, 242 unsigned type,
243 int xoffset, 243 int xoffset,
244 int yoffset, 244 int yoffset,
245 int width, 245 int width,
246 int height) = 0; 246 int height) = 0;
247 247
248 // Clears a level sub area of a compressed 2D texture.
249 // Returns false if a GL error should be generated.
250 virtual bool ClearCompressedTextureLevel(Texture* texture,
251 unsigned target,
252 int level,
253 unsigned format,
254 int width,
255 int height) = 0;
256
257 // Indicates whether a given internal format is one for a compressed
258 // texture.
259 virtual bool IsCompressedTextureFormat(unsigned format) = 0;
260
248 // Clears a level of a 3D texture. 261 // Clears a level of a 3D texture.
249 // Returns false if a GL error should be generated. 262 // Returns false if a GL error should be generated.
250 virtual bool ClearLevel3D(Texture* texture, 263 virtual bool ClearLevel3D(Texture* texture,
251 unsigned target, 264 unsigned target,
252 int level, 265 int level,
253 unsigned format, 266 unsigned format,
254 unsigned type, 267 unsigned type,
255 int width, 268 int width,
256 int height, 269 int height,
257 int depth) = 0; 270 int depth) = 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 bool log_commands_; 313 bool log_commands_;
301 bool unsafe_es3_apis_enabled_; 314 bool unsafe_es3_apis_enabled_;
302 bool force_shader_name_hashing_for_test_; 315 bool force_shader_name_hashing_for_test_;
303 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 316 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
304 }; 317 };
305 318
306 } // namespace gles2 319 } // namespace gles2
307 } // namespace gpu 320 } // namespace gpu
308 321
309 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 322 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698