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

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

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 years, 8 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/cmd_parser_test.cc ('k') | gpu/command_buffer/service/command_buffer_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/command_buffer_service.h
diff --git a/gpu/command_buffer/service/command_buffer_service.h b/gpu/command_buffer/service/command_buffer_service.h
index 560bf163326fcfcdfcfc3ba98e61bd39b3cd0bf4..df058767b07f8b55466a304577fe641a1803ac2c 100644
--- a/gpu/command_buffer/service/command_buffer_service.h
+++ b/gpu/command_buffer/service/command_buffer_service.h
@@ -8,6 +8,8 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
+
#include "base/callback.h"
#include "base/macros.h"
#include "gpu/command_buffer/common/command_buffer.h"
@@ -85,19 +87,20 @@ class GPU_EXPORT CommandBufferService : public CommandBufferServiceBase {
virtual void SetParseErrorCallback(const base::Closure& callback);
// Setup the shared memory that shared state should be copied into.
- void SetSharedStateBuffer(scoped_ptr<BufferBacking> shared_state_buffer);
+ void SetSharedStateBuffer(std::unique_ptr<BufferBacking> shared_state_buffer);
// Copy the current state into the shared state transfer buffer.
void UpdateState();
// Registers an existing shared memory object and get an ID that can be used
// to identify it in the command buffer.
- bool RegisterTransferBuffer(int32_t id, scoped_ptr<BufferBacking> buffer);
+ bool RegisterTransferBuffer(int32_t id,
+ std::unique_ptr<BufferBacking> buffer);
private:
int32_t ring_buffer_id_;
scoped_refptr<Buffer> ring_buffer_;
- scoped_ptr<BufferBacking> shared_state_buffer_;
+ std::unique_ptr<BufferBacking> shared_state_buffer_;
CommandBufferSharedState* shared_state_;
int32_t num_entries_;
int32_t get_offset_;
« no previous file with comments | « gpu/command_buffer/service/cmd_parser_test.cc ('k') | gpu/command_buffer/service/command_buffer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698