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

Unified Diff: ui/gl/gl_surface_osmesa.cc

Issue 1545113002: Switch to standard integer types in ui/gl/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 8375d6bebd7965e684d71fc63cf7cb4610c751c9..6521bce4bd82030d4570951e4096c7e02b3d4d81 100644
--- a/ui/gl/gl_surface_osmesa.cc
+++ b/ui/gl/gl_surface_osmesa.cc
@@ -54,7 +54,7 @@ bool GLSurfaceOSMesa::Resize(const gfx::Size& new_size,
}
// Preserve the old buffer.
- scoped_ptr<int32[]> old_buffer(buffer_.release());
+ scoped_ptr<int32_t[]> old_buffer(buffer_.release());
base::CheckedNumeric<int> checked_size = sizeof(buffer_[0]);
checked_size *= new_size.width();
@@ -63,7 +63,7 @@ bool GLSurfaceOSMesa::Resize(const gfx::Size& new_size,
return false;
// Allocate a new one.
- buffer_.reset(new int32[new_size.GetArea()]);
+ buffer_.reset(new int32_t[new_size.GetArea()]);
if (!buffer_.get())
return false;
« 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