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

Unified Diff: ppapi/shared_impl/compositor_layer_data.h

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr 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 | « ppapi/proxy/video_encoder_resource_unittest.cc ('k') | ppapi/shared_impl/compositor_layer_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/compositor_layer_data.h
diff --git a/ppapi/shared_impl/compositor_layer_data.h b/ppapi/shared_impl/compositor_layer_data.h
index 86a5b59225c78694912437357bf2defa50fc8681..179b69308c7d708c179cca59869b4555f471007c 100644
--- a/ppapi/shared_impl/compositor_layer_data.h
+++ b/ppapi/shared_impl/compositor_layer_data.h
@@ -8,8 +8,9 @@
#include <stdint.h>
#include <string.h>
+#include <memory>
+
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "gpu/command_buffer/common/mailbox.h"
#include "gpu/command_buffer/common/sync_token.h"
#include "ppapi/c/ppb_compositor_layer.h"
@@ -112,9 +113,9 @@ struct PPAPI_SHARED_EXPORT CompositorLayerData {
const CompositorLayerData& operator=(const CompositorLayerData& other);
LayerCommon common;
- scoped_ptr<ColorLayer> color;
- scoped_ptr<TextureLayer> texture;
- scoped_ptr<ImageLayer> image;
+ std::unique_ptr<ColorLayer> color;
+ std::unique_ptr<TextureLayer> texture;
+ std::unique_ptr<ImageLayer> image;
};
} // namespace ppapi
« no previous file with comments | « ppapi/proxy/video_encoder_resource_unittest.cc ('k') | ppapi/shared_impl/compositor_layer_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698