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

Unified Diff: pdf/out_of_process_instance.cc

Issue 1533413002: Switch to standard integer types in pdf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « pdf/out_of_process_instance.h ('k') | pdf/paint_aggregator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/out_of_process_instance.cc
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
index cd71961ecb65e958bf9dce64a2c8579d5740b440..875642ff8bcb35191608a269228db88eb97acac0 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -4,6 +4,9 @@
#include "pdf/out_of_process_instance.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <algorithm> // for min/max()
#define _USE_MATH_DEFINES // for M_PI
#include <cmath> // for log() and pow()
@@ -816,11 +819,11 @@ int OutOfProcessInstance::GetDocumentPixelHeight() const {
ceil(document_size_.height() * zoom_ * device_scale_));
}
-void OutOfProcessInstance::FillRect(const pp::Rect& rect, uint32 color) {
+void OutOfProcessInstance::FillRect(const pp::Rect& rect, uint32_t color) {
DCHECK(!image_data_.is_null() || rect.IsEmpty());
- uint32* buffer_start = static_cast<uint32*>(image_data_.data());
+ uint32_t* buffer_start = static_cast<uint32_t*>(image_data_.data());
int stride = image_data_.stride();
- uint32* ptr = buffer_start + rect.y() * stride / 4 + rect.x();
+ uint32_t* ptr = buffer_start + rect.y() * stride / 4 + rect.x();
int height = rect.height();
int width = rect.width();
for (int y = 0; y < height; ++y) {
@@ -1252,8 +1255,8 @@ void OutOfProcessInstance::DocumentHasUnsupportedFeature(
pp::PDF::HasUnsupportedFeature(this);
}
-void OutOfProcessInstance::DocumentLoadProgress(uint32 available,
- uint32 doc_size) {
+void OutOfProcessInstance::DocumentLoadProgress(uint32_t available,
+ uint32_t doc_size) {
double progress = 0.0;
if (doc_size == 0) {
// Document size is unknown. Use heuristics.
@@ -1380,7 +1383,7 @@ bool OutOfProcessInstance::IsPrintPreview() {
return IsPrintPreviewUrl(url_);
}
-uint32 OutOfProcessInstance::GetBackgroundColor() {
+uint32_t OutOfProcessInstance::GetBackgroundColor() {
return background_color_;
}
« no previous file with comments | « pdf/out_of_process_instance.h ('k') | pdf/paint_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698