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

Unified Diff: ui/gl/gl_surface_x11.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_win.cc ('k') | ui/gl/gl_switches.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_x11.cc
diff --git a/ui/gl/gl_surface_x11.cc b/ui/gl/gl_surface_x11.cc
index 66a41992faa0216b82dcb511c833ee41d9b593ce..3a2a0da9fdd7d2ff9033203e61bdfdc477436009 100644
--- a/ui/gl/gl_surface_x11.cc
+++ b/ui/gl/gl_surface_x11.cc
@@ -4,7 +4,10 @@
#include "ui/gl/gl_surface.h"
+#include <stdint.h>
+
#include "base/logging.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/trace_event/trace_event.h"
@@ -200,13 +203,9 @@ gfx::SwapResult NativeViewGLSurfaceOSMesa::SwapBuffers() {
}
// Copy the frame into the pixmap.
- gfx::PutARGBImage(xdisplay_,
- attributes.visual,
- attributes.depth,
- pixmap_,
+ gfx::PutARGBImage(xdisplay_, attributes.visual, attributes.depth, pixmap_,
pixmap_graphics_context_,
- static_cast<const uint8*>(GetHandle()),
- size.width(),
+ static_cast<const uint8_t*>(GetHandle()), size.width(),
size.height());
// Copy the pixmap to the window.
@@ -244,20 +243,10 @@ gfx::SwapResult NativeViewGLSurfaceOSMesa::PostSubBuffer(int x,
}
// Copy the frame into the pixmap.
- gfx::PutARGBImage(xdisplay_,
- attributes.visual,
- attributes.depth,
- pixmap_,
+ gfx::PutARGBImage(xdisplay_, attributes.visual, attributes.depth, pixmap_,
pixmap_graphics_context_,
- static_cast<const uint8*>(GetHandle()),
- size.width(),
- size.height(),
- x,
- y,
- x,
- y,
- width,
- height);
+ static_cast<const uint8_t*>(GetHandle()), size.width(),
+ size.height(), x, y, x, y, width, height);
// Copy the pixmap to the window.
XCopyArea(xdisplay_,
« no previous file with comments | « ui/gl/gl_surface_win.cc ('k') | ui/gl/gl_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698