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

Unified Diff: components/test_runner/test_plugin.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (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 | « components/test_runner/test_plugin.h ('k') | components/test_runner/test_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_plugin.cc
diff --git a/components/test_runner/test_plugin.cc b/components/test_runner/test_plugin.cc
index b8d5a6917d79822801cf022a5eaa5bf218a9f8e6..f26ebe2989f4c9880d7c4c28ea692dd8a6088269 100644
--- a/components/test_runner/test_plugin.cc
+++ b/components/test_runner/test_plugin.cc
@@ -4,7 +4,9 @@
#include "components/test_runner/test_plugin.h"
-#include "base/basictypes.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/logging.h"
#include "base/memory/shared_memory.h"
@@ -418,11 +420,9 @@ void TestPlugin::DrawSceneGL() {
}
void TestPlugin::DrawSceneSoftware(void* memory) {
- SkColor background_color =
- SkColorSetARGB(static_cast<uint8>(scene_.opacity * 255),
- scene_.background_color[0],
- scene_.background_color[1],
- scene_.background_color[2]);
+ SkColor background_color = SkColorSetARGB(
+ static_cast<uint8_t>(scene_.opacity * 255), scene_.background_color[0],
+ scene_.background_color[1], scene_.background_color[2]);
const SkImageInfo info =
SkImageInfo::MakeN32Premul(rect_.width, rect_.height);
@@ -433,11 +433,9 @@ void TestPlugin::DrawSceneSoftware(void* memory) {
if (scene_.primitive != PrimitiveNone) {
DCHECK_EQ(PrimitiveTriangle, scene_.primitive);
- SkColor foreground_color =
- SkColorSetARGB(static_cast<uint8>(scene_.opacity * 255),
- scene_.primitive_color[0],
- scene_.primitive_color[1],
- scene_.primitive_color[2]);
+ SkColor foreground_color = SkColorSetARGB(
+ static_cast<uint8_t>(scene_.opacity * 255), scene_.primitive_color[0],
+ scene_.primitive_color[1], scene_.primitive_color[2]);
SkPath triangle_path;
triangle_path.moveTo(0.5f * rect_.width, 0.9f * rect_.height);
triangle_path.lineTo(0.1f * rect_.width, 0.1f * rect_.height);
« no previous file with comments | « components/test_runner/test_plugin.h ('k') | components/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698