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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 | 399 |
400 static const GLuint kServiceBufferId = 301; | 400 static const GLuint kServiceBufferId = 301; |
401 static const GLuint kServiceFramebufferId = 302; | 401 static const GLuint kServiceFramebufferId = 302; |
402 static const GLuint kServiceRenderbufferId = 303; | 402 static const GLuint kServiceRenderbufferId = 303; |
403 static const GLuint kServiceTextureId = 304; | 403 static const GLuint kServiceTextureId = 304; |
404 static const GLuint kServiceProgramId = 305; | 404 static const GLuint kServiceProgramId = 305; |
405 static const GLuint kServiceShaderId = 306; | 405 static const GLuint kServiceShaderId = 306; |
406 static const GLuint kServiceElementBufferId = 308; | 406 static const GLuint kServiceElementBufferId = 308; |
407 static const GLuint kServiceQueryId = 309; | 407 static const GLuint kServiceQueryId = 309; |
408 static const GLuint kServiceVertexArrayId = 310; | 408 static const GLuint kServiceVertexArrayId = 310; |
| 409 static const GLuint kServicePathId = 311; |
409 | 410 |
410 static const int32 kSharedMemoryId = 401; | 411 static const int32 kSharedMemoryId = 401; |
411 static const size_t kSharedBufferSize = 2048; | 412 static const size_t kSharedBufferSize = 2048; |
412 static const uint32 kSharedMemoryOffset = 132; | 413 static const uint32 kSharedMemoryOffset = 132; |
413 static const int32 kInvalidSharedMemoryId = 402; | 414 static const int32 kInvalidSharedMemoryId = 402; |
414 static const uint32 kInvalidSharedMemoryOffset = kSharedBufferSize + 1; | 415 static const uint32 kInvalidSharedMemoryOffset = kSharedBufferSize + 1; |
415 static const uint32 kInitialResult = 0xBDBDBDBDu; | 416 static const uint32 kInitialResult = 0xBDBDBDBDu; |
416 static const uint8 kInitialMemoryValue = 0xBDu; | 417 static const uint8 kInitialMemoryValue = 0xBDu; |
417 | 418 |
418 static const uint32 kNewClientId = 501; | 419 static const uint32 kNewClientId = 501; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 GLuint client_framebuffer_id_; | 496 GLuint client_framebuffer_id_; |
496 GLuint client_program_id_; | 497 GLuint client_program_id_; |
497 GLuint client_renderbuffer_id_; | 498 GLuint client_renderbuffer_id_; |
498 GLuint client_shader_id_; | 499 GLuint client_shader_id_; |
499 GLuint client_texture_id_; | 500 GLuint client_texture_id_; |
500 GLuint client_element_buffer_id_; | 501 GLuint client_element_buffer_id_; |
501 GLuint client_vertex_shader_id_; | 502 GLuint client_vertex_shader_id_; |
502 GLuint client_fragment_shader_id_; | 503 GLuint client_fragment_shader_id_; |
503 GLuint client_query_id_; | 504 GLuint client_query_id_; |
504 GLuint client_vertexarray_id_; | 505 GLuint client_vertexarray_id_; |
| 506 GLuint client_path_id_; |
505 | 507 |
506 uint32 shared_memory_id_; | 508 uint32 shared_memory_id_; |
507 uint32 shared_memory_offset_; | 509 uint32 shared_memory_offset_; |
508 void* shared_memory_address_; | 510 void* shared_memory_address_; |
509 void* shared_memory_base_; | 511 void* shared_memory_base_; |
510 | 512 |
511 int8 immediate_buffer_[256]; | 513 int8 immediate_buffer_[256]; |
512 | 514 |
513 private: | 515 private: |
514 class MockCommandBufferEngine : public CommandBufferEngine { | 516 class MockCommandBufferEngine : public CommandBufferEngine { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 protected: | 556 protected: |
555 virtual void SetUp() OVERRIDE; | 557 virtual void SetUp() OVERRIDE; |
556 virtual void TearDown() OVERRIDE; | 558 virtual void TearDown() OVERRIDE; |
557 | 559 |
558 }; | 560 }; |
559 | 561 |
560 } // namespace gles2 | 562 } // namespace gles2 |
561 } // namespace gpu | 563 } // namespace gpu |
562 | 564 |
563 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 565 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |