Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 351 void AddExpectationsForSimulatedAttrib0WithError( | 351 void AddExpectationsForSimulatedAttrib0WithError( |
| 352 GLsizei num_vertices, GLuint buffer_id, GLenum error); | 352 GLsizei num_vertices, GLuint buffer_id, GLenum error); |
| 353 | 353 |
| 354 void AddExpectationsForSimulatedAttrib0( | 354 void AddExpectationsForSimulatedAttrib0( |
| 355 GLsizei num_vertices, GLuint buffer_id); | 355 GLsizei num_vertices, GLuint buffer_id); |
| 356 | 356 |
| 357 void AddExpectationsForGenVertexArraysOES(); | 357 void AddExpectationsForGenVertexArraysOES(); |
| 358 void AddExpectationsForDeleteVertexArraysOES(); | 358 void AddExpectationsForDeleteVertexArraysOES(); |
| 359 void AddExpectationsForBindVertexArrayOES(); | 359 void AddExpectationsForBindVertexArrayOES(); |
| 360 void AddExpectationsForRestoreAttribState(GLuint attrib); | 360 void AddExpectationsForRestoreAttribState(GLuint attrib); |
| 361 void AddExpectationsForActiveTexture(GLenum unit); | |
| 362 void AddExpectationsForBindTexture(GLenum target, GLuint texture_id); | |
| 363 | |
| 364 void InitializeContextState( | |
| 365 ContextState* state, uint32 non_default_unit, uint32 active_unit); | |
|
no sievers
2014/01/14 22:19:28
remove these
kaanb
2014/01/14 23:51:10
Done.
| |
| 361 | 366 |
| 362 GLvoid* BufferOffset(unsigned i) { | 367 GLvoid* BufferOffset(unsigned i) { |
| 363 return static_cast<int8 *>(NULL)+(i); | 368 return static_cast<int8 *>(NULL)+(i); |
| 364 } | 369 } |
| 365 | 370 |
| 366 template <typename Command, typename Result> | 371 template <typename Command, typename Result> |
| 367 bool IsObjectHelper(GLuint client_id) { | 372 bool IsObjectHelper(GLuint client_id) { |
| 368 Result* result = static_cast<Result*>(shared_memory_address_); | 373 Result* result = static_cast<Result*>(shared_memory_address_); |
| 369 Command cmd; | 374 Command cmd; |
| 370 cmd.Init(client_id, kSharedMemoryId, kSharedMemoryOffset); | 375 cmd.Init(client_id, kSharedMemoryId, kSharedMemoryOffset); |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 557 protected: | 562 protected: |
| 558 virtual void SetUp() OVERRIDE; | 563 virtual void SetUp() OVERRIDE; |
| 559 virtual void TearDown() OVERRIDE; | 564 virtual void TearDown() OVERRIDE; |
| 560 | 565 |
| 561 }; | 566 }; |
| 562 | 567 |
| 563 } // namespace gles2 | 568 } // namespace gles2 |
| 564 } // namespace gpu | 569 } // namespace gpu |
| 565 | 570 |
| 566 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 571 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |