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

Unified Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo part of clang-format 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
Index: gpu/command_buffer/client/gles2_implementation.h
diff --git a/gpu/command_buffer/client/gles2_implementation.h b/gpu/command_buffer/client/gles2_implementation.h
index 6ee901e2a05cb73a8f56c3556d51403e7ece9349..3a0684a4346d73c7334210b453b9ccaf0ec27d5b 100644
--- a/gpu/command_buffer/client/gles2_implementation.h
+++ b/gpu/command_buffer/client/gles2_implementation.h
@@ -10,6 +10,7 @@
#include <list>
#include <map>
+#include <memory>
#include <queue>
#include <set>
#include <string>
@@ -18,7 +19,6 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/trace_event/memory_dump_provider.h"
#include "gpu/command_buffer/client/buffer_tracker.h"
@@ -746,7 +746,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation
// unpack skip images as last set by glPixelStorei
GLint unpack_skip_images_;
- scoped_ptr<TextureUnit[]> texture_units_;
+ std::unique_ptr<TextureUnit[]> texture_units_;
// 0 to gl_state_.max_combined_texture_image_units.
GLuint active_texture_unit_;
@@ -773,7 +773,7 @@ class GLES2_IMPL_EXPORT GLES2Implementation
// Client side management for vertex array objects. Needed to correctly
// track client side arrays.
- scoped_ptr<VertexArrayObjectManager> vertex_array_object_manager_;
+ std::unique_ptr<VertexArrayObjectManager> vertex_array_object_manager_;
GLuint reserved_ids_[2];
@@ -815,15 +815,15 @@ class GLES2_IMPL_EXPORT GLES2Implementation
typedef std::map<const void*, MappedTexture> MappedTextureMap;
MappedTextureMap mapped_textures_;
- scoped_ptr<MappedMemoryManager> mapped_memory_;
+ std::unique_ptr<MappedMemoryManager> mapped_memory_;
scoped_refptr<ShareGroup> share_group_;
ShareGroupContextData share_group_context_data_;
- scoped_ptr<QueryTracker> query_tracker_;
- scoped_ptr<IdAllocator> query_id_allocator_;
+ std::unique_ptr<QueryTracker> query_tracker_;
+ std::unique_ptr<IdAllocator> query_id_allocator_;
- scoped_ptr<BufferTracker> buffer_tracker_;
+ std::unique_ptr<BufferTracker> buffer_tracker_;
GLES2ImplementationErrorMessageCallback* error_message_callback_;

Powered by Google App Engine
This is Rietveld 408576698