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

Unified Diff: gpu/command_buffer/service/common_decoder.h

Issue 2163093002: remove linked_ptr from gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix? win32 compile Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/command_executor.h ('k') | gpu/command_buffer/service/common_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/common_decoder.h
diff --git a/gpu/command_buffer/service/common_decoder.h b/gpu/command_buffer/service/common_decoder.h
index e280cea2dad2ab6d475d2727c44ce3f67d33968b..a947286f72a391e50b75b3cb469cffa80b92074f 100644
--- a/gpu/command_buffer/service/common_decoder.h
+++ b/gpu/command_buffer/service/common_decoder.h
@@ -10,11 +10,9 @@
#include <map>
#include <memory>
-#include <stack>
#include <string>
#include "base/macros.h"
-#include "base/memory/linked_ptr.h"
#include "gpu/command_buffer/common/buffer.h"
#include "gpu/command_buffer/service/cmd_parser.h"
#include "gpu/gpu_export.h"
@@ -198,7 +196,7 @@ class GPU_EXPORT CommonDecoder : NON_EXPORTED_BASE(public AsyncAPIInterface) {
CommandBufferEngine* engine_;
size_t max_bucket_size_;
- typedef std::map<uint32_t, linked_ptr<Bucket>> BucketMap;
+ typedef std::map<uint32_t, std::unique_ptr<Bucket>> BucketMap;
BucketMap buckets_;
typedef Error (CommonDecoder::*CmdHandler)(uint32_t immediate_data_size,
@@ -215,6 +213,7 @@ class GPU_EXPORT CommonDecoder : NON_EXPORTED_BASE(public AsyncAPIInterface) {
// A table of CommandInfo for all the commands.
static const CommandInfo command_info[];
+ DISALLOW_COPY_AND_ASSIGN(CommonDecoder);
};
} // namespace gpu
« no previous file with comments | « gpu/command_buffer/service/command_executor.h ('k') | gpu/command_buffer/service/common_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698