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

Unified Diff: tests/SkLinearBitmapPipelineTest.cpp

Issue 1712653002: Switch to pixmap in API. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | « src/core/SkLinearBitmapPipeline.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/SkLinearBitmapPipelineTest.cpp
diff --git a/tests/SkLinearBitmapPipelineTest.cpp b/tests/SkLinearBitmapPipelineTest.cpp
index db1fc2ab70c8f2d4b6257b84667c16318ec7ee69..98a3ac76d7c3ee81755e0ea92ea4bd08edaeae4f 100644
--- a/tests/SkLinearBitmapPipelineTest.cpp
+++ b/tests/SkLinearBitmapPipelineTest.cpp
@@ -41,13 +41,15 @@ DEF_TEST(SkBitmapFP, reporter) {
const SkImageInfo info =
SkImageInfo::MakeN32Premul(width, height, kLinear_SkColorProfileType);
+ SkPixmap srcPixmap{info, bitmap, static_cast<size_t>(4 * width)};
+
SkLinearBitmapPipeline pipeline{invert, kNone_SkFilterQuality, SkShader::kClamp_TileMode,
- SkShader::kClamp_TileMode, info, bitmap};
+ SkShader::kClamp_TileMode, srcPixmap};
int count = 10;
pipeline.shadeSpan4f(3, 6, FPbuffer, count);
-
+#if 0
Pixel* pixelBuffer = (Pixel*)FPbuffer;
for (int i = 0; i < count; i++) {
printf("i: %d - (%g, %g, %g, %g)\n", i,
@@ -56,6 +58,7 @@ DEF_TEST(SkBitmapFP, reporter) {
pixelBuffer[i][2] * 255.0f,
pixelBuffer[i][3] * 255.0f);
}
+#endif
delete [] bitmap;
delete [] FPbuffer;
« no previous file with comments | « src/core/SkLinearBitmapPipeline.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698