From 80fb0b4054a867a98fc218621fe40e20594d23c8 Mon Sep 17 00:00:00 2001 From: "qsr@chromium.org" Date: Thu, 6 Jun 2013 23:26:21 +0000 Subject: Remove unused method and data. CommonDecoder::PushAddress is not used by anything. R=piman@chromium.org Review URL: https://chromiumcodereview.appspot.com/16532003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204653 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/command_buffer/service/common_decoder.cc | 11 ----------- gpu/command_buffer/service/common_decoder.h | 13 ------------- 2 files changed, 24 deletions(-) (limited to 'gpu') diff --git a/gpu/command_buffer/service/common_decoder.cc b/gpu/command_buffer/service/common_decoder.cc index e0a6a31..72f30a3 100644 --- a/gpu/command_buffer/service/common_decoder.cc +++ b/gpu/command_buffer/service/common_decoder.cc @@ -78,17 +78,6 @@ Buffer CommonDecoder::GetSharedMemoryBuffer(unsigned int shm_id) { return engine_->GetSharedMemoryBuffer(shm_id); } -bool CommonDecoder::PushAddress(uint32 offset) { - if (call_stack_.size() < kMaxStackDepth) { - CommandAddress return_address(engine_->GetGetOffset()); - if (engine_->SetGetOffset(offset)) { - call_stack_.push(return_address); - return true; - } - } - return false; -} - const char* CommonDecoder::GetCommonCommandName( cmd::CommandId command_id) const { return cmd::GetCommandName(command_id); diff --git a/gpu/command_buffer/service/common_decoder.h b/gpu/command_buffer/service/common_decoder.h index a9361f8..03002c8 100644 --- a/gpu/command_buffer/service/common_decoder.h +++ b/gpu/command_buffer/service/common_decoder.h @@ -163,23 +163,10 @@ class GPU_EXPORT CommonDecoder : NON_EXPORTED_BASE(public AsyncAPIInterface) { #undef COMMON_COMMAND_BUFFER_CMD_OP - // Pushes an address on the call stack. - bool PushAddress(uint32 offset); - CommandBufferEngine* engine_; typedef std::map > BucketMap; BucketMap buckets_; - - // The value put on the call stack. - struct CommandAddress { - explicit CommandAddress(uint32 _offset) - : offset(_offset) { - } - - uint32 offset; - }; - std::stack call_stack_; }; } // namespace gpu -- cgit v1.1