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

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

Issue 168983005: Do not rely on a texture's internalformat matching format (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 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 // 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 <vector> 10 #include <vector>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Provides detail about a lost context if one occurred. 185 // Provides detail about a lost context if one occurred.
186 virtual error::ContextLostReason GetContextLostReason() = 0; 186 virtual error::ContextLostReason GetContextLostReason() = 0;
187 187
188 // Clears a level of a texture 188 // Clears a level of a texture
189 // Returns false if a GL error should be generated. 189 // Returns false if a GL error should be generated.
190 virtual bool ClearLevel( 190 virtual bool ClearLevel(
191 unsigned service_id, 191 unsigned service_id,
192 unsigned bind_target, 192 unsigned bind_target,
193 unsigned target, 193 unsigned target,
194 int level, 194 int level,
195 unsigned internal_format,
195 unsigned format, 196 unsigned format,
196 unsigned type, 197 unsigned type,
197 int width, 198 int width,
198 int height, 199 int height,
199 bool is_texture_immutable) = 0; 200 bool is_texture_immutable) = 0;
200 201
201 virtual ErrorState* GetErrorState() = 0; 202 virtual ErrorState* GetErrorState() = 0;
202 203
203 // A callback for messages from the decoder. 204 // A callback for messages from the decoder.
204 virtual void SetShaderCacheCallback(const ShaderCacheCallback& callback) = 0; 205 virtual void SetShaderCacheCallback(const ShaderCacheCallback& callback) = 0;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 bool debug_; 240 bool debug_;
240 bool log_commands_; 241 bool log_commands_;
241 242
242 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 243 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
243 }; 244 };
244 245
245 } // namespace gles2 246 } // namespace gles2
246 } // namespace gpu 247 } // namespace gpu
247 248
248 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 249 #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