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

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: Fixed gpu_unittests after last refactor. 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('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 (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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 virtual bool ClearLevel(Texture* texture, 235 virtual bool ClearLevel(Texture* texture,
236 unsigned target, 236 unsigned target,
237 int level, 237 int level,
238 unsigned format, 238 unsigned format,
239 unsigned type, 239 unsigned type,
240 int xoffset, 240 int xoffset,
241 int yoffset, 241 int yoffset,
242 int width, 242 int width,
243 int height) = 0; 243 int height) = 0;
244 244
245 // Clears a level sub area of a compressed 2D texture.
246 // Returns false if a GL error should be generated.
247 virtual bool ClearCompressedTextureLevel(Texture* texture,
248 unsigned target,
249 int level,
250 unsigned format,
251 int width,
252 int height) = 0;
253
254 // Indicates whether a given internal format is one for a compressed
255 // texture.
256 virtual bool IsCompressedTextureFormat(unsigned format) = 0;
257
245 // Clears a level of a 3D texture. 258 // Clears a level of a 3D texture.
246 // Returns false if a GL error should be generated. 259 // Returns false if a GL error should be generated.
247 virtual bool ClearLevel3D(Texture* texture, 260 virtual bool ClearLevel3D(Texture* texture,
248 unsigned target, 261 unsigned target,
249 int level, 262 int level,
250 unsigned format, 263 unsigned format,
251 unsigned type, 264 unsigned type,
252 int width, 265 int width,
253 int height, 266 int height,
254 int depth) = 0; 267 int depth) = 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 bool log_commands_; 310 bool log_commands_;
298 bool unsafe_es3_apis_enabled_; 311 bool unsafe_es3_apis_enabled_;
299 bool force_shader_name_hashing_for_test_; 312 bool force_shader_name_hashing_for_test_;
300 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 313 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
301 }; 314 };
302 315
303 } // namespace gles2 316 } // namespace gles2
304 } // namespace gpu 317 } // namespace gpu
305 318
306 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 319 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698