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

Unified Diff: ui/gl/gl_surface_osmesa.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 | « ui/gl/gl_surface_osmesa.h ('k') | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_osmesa.cc
diff --git a/ui/gl/gl_surface_osmesa.cc b/ui/gl/gl_surface_osmesa.cc
index e39f9bd1a87212c2c43cc4d8d8249382478195c4..23420747d7b5954846cf7bbd0895f53ff3592663 100644
--- a/ui/gl/gl_surface_osmesa.cc
+++ b/ui/gl/gl_surface_osmesa.cc
@@ -36,7 +36,7 @@ void GLSurfaceOSMesa::Destroy() {
bool GLSurfaceOSMesa::Resize(const gfx::Size& new_size,
float scale_factor,
bool has_alpha) {
- scoped_ptr<ui::ScopedMakeCurrent> scoped_make_current;
+ std::unique_ptr<ui::ScopedMakeCurrent> scoped_make_current;
GLContext* current_context = GLContext::GetCurrent();
bool was_current =
current_context && current_context->IsCurrent(this);
@@ -47,7 +47,7 @@ bool GLSurfaceOSMesa::Resize(const gfx::Size& new_size,
}
// Preserve the old buffer.
- scoped_ptr<int32_t[]> old_buffer(buffer_.release());
+ std::unique_ptr<int32_t[]> old_buffer(buffer_.release());
base::CheckedNumeric<int> checked_size = sizeof(buffer_[0]);
checked_size *= new_size.width();
« no previous file with comments | « ui/gl/gl_surface_osmesa.h ('k') | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698