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

Unified Diff: tools/skiaserve/Request.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months 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 | « tools/skiaserve/Request.h ('k') | tools/skiaserve/skiaserve.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skiaserve/Request.cpp
diff --git a/tools/skiaserve/Request.cpp b/tools/skiaserve/Request.cpp
index 47b467cd1ffaec6d027478b019555fc2e3333aa0..1d946abaa03ebe8af912a9115d1bb5c0de0815a2 100644
--- a/tools/skiaserve/Request.cpp
+++ b/tools/skiaserve/Request.cpp
@@ -55,7 +55,7 @@ SkData* Request::writeCanvasToPng(SkCanvas* canvas) {
// write to png
SkDynamicMemoryWStream buffer;
- SkDrawCommand::WritePNG((const png_bytep) bmp->getPixels(), bmp->width(), bmp->height(),
+ SkDrawCommand::WritePNG((const png_bytep) bmp->getPixels(), bmp->width(), bmp->height(),
buffer);
return buffer.copyToData();
}
@@ -155,7 +155,7 @@ SkSurface* Request::createGPUSurface() {
return surface;
}
-bool Request::enableGPU(bool enable) {
+bool Request::enableGPU(bool enable) {
if (enable) {
SkSurface* surface = this->createGPUSurface();
if (surface) {
@@ -175,7 +175,7 @@ bool Request::enableGPU(bool enable) {
fSurface.reset(this->createCPUSurface());
fGPUEnabled = false;
return true;
-}
+}
bool Request::initPictureFromStream(SkStream* stream) {
// parse picture from stream
@@ -254,4 +254,3 @@ SkColor Request::getPixel(int x, int y) {
bitmap->unlockPixels();
return result;
}
-
« no previous file with comments | « tools/skiaserve/Request.h ('k') | tools/skiaserve/skiaserve.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698