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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.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: Add unit tests for TexSubImage2D on GLES3 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
7 7
8 #include "gpu/command_buffer/common/gles2_cmd_format.h" 8 #include "gpu/command_buffer/common/gles2_cmd_format.h"
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
10 #include "gpu/command_buffer/service/buffer_manager.h" 10 #include "gpu/command_buffer/service/buffer_manager.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 void SetupVertexBuffer(); 278 void SetupVertexBuffer();
279 void SetupAllNeededVertexBuffers(); 279 void SetupAllNeededVertexBuffers();
280 280
281 void SetupIndexBuffer(); 281 void SetupIndexBuffer();
282 282
283 void DeleteVertexBuffer(); 283 void DeleteVertexBuffer();
284 284
285 void DeleteIndexBuffer(); 285 void DeleteIndexBuffer();
286 286
287 void SetupClearTextureExpections( 287 void SetupClearTextureExpectations(
288 GLuint service_id, 288 GLuint service_id,
289 GLuint old_service_id, 289 GLuint old_service_id,
290 GLenum bind_target, 290 GLenum bind_target,
291 GLenum target, 291 GLenum target,
292 GLint level, 292 GLint level,
293 GLenum internal_format,
293 GLenum format, 294 GLenum format,
294 GLenum type, 295 GLenum type,
295 GLsizei width, 296 GLsizei width,
296 GLsizei height); 297 GLsizei height);
297 298
298 void SetupExpectationsForRestoreClearState( 299 void SetupExpectationsForRestoreClearState(
299 GLclampf restore_red, 300 GLclampf restore_red,
300 GLclampf restore_green, 301 GLclampf restore_green,
301 GLclampf restore_blue, 302 GLclampf restore_blue,
302 GLclampf restore_alpha, 303 GLclampf restore_alpha,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 protected: 552 protected:
552 virtual void SetUp() OVERRIDE; 553 virtual void SetUp() OVERRIDE;
553 virtual void TearDown() OVERRIDE; 554 virtual void TearDown() OVERRIDE;
554 555
555 }; 556 };
556 557
557 } // namespace gles2 558 } // namespace gles2
558 } // namespace gpu 559 } // namespace gpu
559 560
560 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 561 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698