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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h

Issue 8919014: Revert "Revert 113479 - Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer"" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/common_decoder_unittest.cc ('k') | gpu/command_buffer/service/gpu_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698