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

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

Issue 8566059: Add CommandBuffer::SetGetBuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: etc Created 9 years, 1 month 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 } 411 }
412 412
413 void ClearSharedMemory() { 413 void ClearSharedMemory() {
414 memset(data_.get(), kInitialMemoryValue, kSharedBufferSize); 414 memset(data_.get(), kInitialMemoryValue, kSharedBufferSize);
415 } 415 }
416 416
417 virtual void set_token(int32 token) OVERRIDE { 417 virtual void set_token(int32 token) OVERRIDE {
418 DCHECK(false); 418 DCHECK(false);
419 } 419 }
420 420
421 virtual bool SetGetBuffer(int32 /* shm_id */) OVERRIDE {
422 DCHECK(false);
423 return false;
424 }
425
421 // Overridden from CommandBufferEngine. 426 // Overridden from CommandBufferEngine.
422 virtual bool SetGetOffset(int32 offset) OVERRIDE { 427 virtual bool SetGetOffset(int32 offset) OVERRIDE {
423 DCHECK(false); 428 DCHECK(false);
424 return false; 429 return false;
425 } 430 }
426 431
427 // Overridden from CommandBufferEngine. 432 // Overridden from CommandBufferEngine.
428 virtual int32 GetGetOffset() OVERRIDE { 433 virtual int32 GetGetOffset() OVERRIDE {
429 DCHECK(false); 434 DCHECK(false);
430 return 0; 435 return 0;
(...skipping 18 matching lines...) Expand all
449 protected: 454 protected:
450 virtual void SetUp() OVERRIDE; 455 virtual void SetUp() OVERRIDE;
451 virtual void TearDown() OVERRIDE; 456 virtual void TearDown() OVERRIDE;
452 457
453 }; 458 };
454 459
455 } // namespace gles2 460 } // namespace gles2
456 } // namespace gpu 461 } // namespace gpu
457 462
458 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 463 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698