diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 22:40:09 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 22:40:09 +0000 |
commit | d925120b8752a2f909fc3c41d1c0c91e3d621ce2 (patch) | |
tree | 9391ebde08d14db773e3cfc2d731e93329d52ea8 /ui/gl | |
parent | 6bd8935997a8077a15ff77026d50cebe9cef700b (diff) | |
download | chromium_src-d925120b8752a2f909fc3c41d1c0c91e3d621ce2.zip chromium_src-d925120b8752a2f909fc3c41d1c0c91e3d621ce2.tar.gz chromium_src-d925120b8752a2f909fc3c41d1c0c91e3d621ce2.tar.bz2 |
ui: Convert scoped_arrays to the new scoped_ptr style.
BUG=109874
R=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11878022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177238 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl')
-rw-r--r-- | ui/gl/gl_surface_osmesa.cc | 2 | ||||
-rw-r--r-- | ui/gl/gl_surface_osmesa.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/gl/gl_surface_osmesa.cc b/ui/gl/gl_surface_osmesa.cc index a1fd360..7994eec 100644 --- a/ui/gl/gl_surface_osmesa.cc +++ b/ui/gl/gl_surface_osmesa.cc @@ -29,7 +29,7 @@ bool GLSurfaceOSMesa::Resize(const gfx::Size& new_size) { current_context->ReleaseCurrent(this); // Preserve the old buffer. - scoped_array<int32> old_buffer(buffer_.release()); + scoped_ptr<int32[]> old_buffer(buffer_.release()); // Allocate a new one. buffer_.reset(new int32[new_size.GetArea()]); diff --git a/ui/gl/gl_surface_osmesa.h b/ui/gl/gl_surface_osmesa.h index 77a3f63..a823231 100644 --- a/ui/gl/gl_surface_osmesa.h +++ b/ui/gl/gl_surface_osmesa.h @@ -34,7 +34,7 @@ class GL_EXPORT GLSurfaceOSMesa : public GLSurface { private: unsigned format_; gfx::Size size_; - scoped_array<int32> buffer_; + scoped_ptr<int32[]> buffer_; DISALLOW_COPY_AND_ASSIGN(GLSurfaceOSMesa); }; |