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

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: Removed obsolete method and fixed tests. 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 virtual bool ClearLevel(Texture* texture, 239 virtual bool ClearLevel(Texture* texture,
240 unsigned target, 240 unsigned target,
241 int level, 241 int level,
242 unsigned format, 242 unsigned format,
243 unsigned type, 243 unsigned type,
244 int xoffset, 244 int xoffset,
245 int yoffset, 245 int yoffset,
246 int width, 246 int width,
247 int height) = 0; 247 int height) = 0;
248 248
249 // Clears a level sub area of a compressed 2D texture.
250 // Returns false if a GL error should be generated.
251 virtual bool ClearCompressedTextureLevel(Texture* texture,
252 unsigned target,
253 int level,
254 unsigned format,
255 int width,
256 int height) = 0;
257
249 // Clears a level of a 3D texture. 258 // Clears a level of a 3D texture.
250 // Returns false if a GL error should be generated. 259 // Returns false if a GL error should be generated.
251 virtual bool ClearLevel3D(Texture* texture, 260 virtual bool ClearLevel3D(Texture* texture,
252 unsigned target, 261 unsigned target,
253 int level, 262 int level,
254 unsigned format, 263 unsigned format,
255 unsigned type, 264 unsigned type,
256 int width, 265 int width,
257 int height, 266 int height,
258 int depth) = 0; 267 int depth) = 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 bool log_commands_; 310 bool log_commands_;
302 bool unsafe_es3_apis_enabled_; 311 bool unsafe_es3_apis_enabled_;
303 bool force_shader_name_hashing_for_test_; 312 bool force_shader_name_hashing_for_test_;
304 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 313 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
305 }; 314 };
306 315
307 } // namespace gles2 316 } // namespace gles2
308 } // namespace gpu 317 } // namespace gpu
309 318
310 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 319 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698