| 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 | |
| 439 // Overridden from CommandBufferEngine. | 434 // Overridden from CommandBufferEngine. |
| 440 virtual bool SetGetOffset(int32 offset) OVERRIDE { | 435 virtual bool SetGetOffset(int32 offset) OVERRIDE { |
| 441 DCHECK(false); | 436 DCHECK(false); |
| 442 return false; | 437 return false; |
| 443 } | 438 } |
| 444 | 439 |
| 445 // Overridden from CommandBufferEngine. | 440 // Overridden from CommandBufferEngine. |
| 446 virtual int32 GetGetOffset() OVERRIDE { | 441 virtual int32 GetGetOffset() OVERRIDE { |
| 447 DCHECK(false); | 442 DCHECK(false); |
| 448 return 0; | 443 return 0; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 467 protected: | 462 protected: |
| 468 virtual void SetUp() OVERRIDE; | 463 virtual void SetUp() OVERRIDE; |
| 469 virtual void TearDown() OVERRIDE; | 464 virtual void TearDown() OVERRIDE; |
| 470 | 465 |
| 471 }; | 466 }; |
| 472 | 467 |
| 473 } // namespace gles2 | 468 } // namespace gles2 |
| 474 } // namespace gpu | 469 } // namespace gpu |
| 475 | 470 |
| 476 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 471 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |