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

Unified Diff: gpu/tools/compositor_model_bench/render_model_utils.h

Issue 13454036: Rewrite scoped_array<T> to scoped_ptr<T[]> in gpu/, Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yikes Created 7 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/tests/gl_unittests.cc ('k') | gpu/tools/compositor_model_bench/shaders.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/tools/compositor_model_bench/render_model_utils.h
diff --git a/gpu/tools/compositor_model_bench/render_model_utils.h b/gpu/tools/compositor_model_bench/render_model_utils.h
index 8880b42596dd9c073d22b1e5b037bdb5c1442f7d..eaa899110a6e995c97df14e392c0d086a0895fb4 100644
--- a/gpu/tools/compositor_model_bench/render_model_utils.h
+++ b/gpu/tools/compositor_model_bench/render_model_utils.h
@@ -21,7 +21,7 @@
// texture ID's in the tree, replacing them with the matching new textures.
class TextureGenerator : public RenderNodeVisitor {
public:
- typedef scoped_array<uint8> ImagePtr;
+ typedef scoped_ptr<uint8[]> ImagePtr;
typedef std::vector<Tile>::iterator tile_iter;
explicit TextureGenerator(RenderNode* root);
@@ -51,9 +51,9 @@ class TextureGenerator : public RenderNodeVisitor {
TextureGenStage stage_;
std::set<int> discovered_ids_;
- scoped_array<GLuint> tex_ids_;
+ scoped_ptr<GLuint[]> tex_ids_;
std::map<int, int> remapped_ids_;
- scoped_array<ImagePtr> image_data_;
+ scoped_ptr<ImagePtr[]> image_data_;
int images_generated_;
std::set<int> ids_for_completed_textures_;
};
« no previous file with comments | « gpu/command_buffer/tests/gl_unittests.cc ('k') | gpu/tools/compositor_model_bench/shaders.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698