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

Unified Diff: content/browser/compositor/software_output_device_x11.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: content/browser/compositor/software_output_device_x11.cc
diff --git a/content/browser/compositor/software_output_device_x11.cc b/content/browser/compositor/software_output_device_x11.cc
index b6116396a68a29381746650c8955aa5430e2a1d3..62695a3dae9fda2d81e194aef4a97a9ed39cc193 100644
--- a/content/browser/compositor/software_output_device_x11.cc
+++ b/content/browser/compositor/software_output_device_x11.cc
@@ -4,6 +4,8 @@
#include "content/browser/compositor/software_output_device_x11.h"
+#include <stddef.h>
+#include <stdint.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -116,20 +118,11 @@ void SoftwareOutputDeviceX11::EndPaint() {
SkImageInfo info;
size_t rowBytes;
const void* addr = surface_->peekPixels(&info, &rowBytes);
- gfx::PutARGBImage(display_,
- attributes_.visual,
- attributes_.depth,
- compositor_->widget(),
- gc_,
- static_cast<const uint8*>(addr),
- viewport_pixel_size_.width(),
- viewport_pixel_size_.height(),
- rect.x(),
- rect.y(),
- rect.x(),
- rect.y(),
- rect.width(),
- rect.height());
+ gfx::PutARGBImage(
+ display_, attributes_.visual, attributes_.depth, compositor_->widget(),
+ gc_, static_cast<const uint8_t*>(addr), viewport_pixel_size_.width(),
+ viewport_pixel_size_.height(), rect.x(), rect.y(), rect.x(), rect.y(),
+ rect.width(), rect.height());
}
} // namespace content
« no previous file with comments | « content/browser/compositor/software_output_device_x11.h ('k') | content/browser/compositor/surface_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698