OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gl_mock.h" | 8 #include "gpu/command_buffer/common/gl_mock.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 } | 424 } |
425 | 425 |
426 void ClearSharedMemory() { | 426 void ClearSharedMemory() { |
427 memset(data_.get(), kInitialMemoryValue, kSharedBufferSize); | 427 memset(data_.get(), kInitialMemoryValue, kSharedBufferSize); |
428 } | 428 } |
429 | 429 |
430 virtual void set_token(int32 token) OVERRIDE { | 430 virtual void set_token(int32 token) OVERRIDE { |
431 DCHECK(false); | 431 DCHECK(false); |
432 } | 432 } |
433 | 433 |
| 434 virtual bool SetGetBuffer(int32 /* transfer_buffer_id */) OVERRIDE { |
| 435 DCHECK(false); |
| 436 return false; |
| 437 } |
| 438 |
434 // Overridden from CommandBufferEngine. | 439 // Overridden from CommandBufferEngine. |
435 virtual bool SetGetOffset(int32 offset) OVERRIDE { | 440 virtual bool SetGetOffset(int32 offset) OVERRIDE { |
436 DCHECK(false); | 441 DCHECK(false); |
437 return false; | 442 return false; |
438 } | 443 } |
439 | 444 |
440 // Overridden from CommandBufferEngine. | 445 // Overridden from CommandBufferEngine. |
441 virtual int32 GetGetOffset() OVERRIDE { | 446 virtual int32 GetGetOffset() OVERRIDE { |
442 DCHECK(false); | 447 DCHECK(false); |
443 return 0; | 448 return 0; |
(...skipping 18 matching lines...) Expand all Loading... |
462 protected: | 467 protected: |
463 virtual void SetUp() OVERRIDE; | 468 virtual void SetUp() OVERRIDE; |
464 virtual void TearDown() OVERRIDE; | 469 virtual void TearDown() OVERRIDE; |
465 | 470 |
466 }; | 471 }; |
467 | 472 |
468 } // namespace gles2 | 473 } // namespace gles2 |
469 } // namespace gpu | 474 } // namespace gpu |
470 | 475 |
471 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 476 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |