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

Unified Diff: example/HelloWorld.cpp

Issue 2069173002: Lots of progress switching to SkColorSpace rather than SkColorProfileType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use new shared sRGB similarity function Created 4 years, 6 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
Index: example/HelloWorld.cpp
diff --git a/example/HelloWorld.cpp b/example/HelloWorld.cpp
index c2dd7d89f1b648e967bbaa92f52bb55f6899759c..39ea7ca186663e13a8e2826aaf634d8b5309acdf 100644
--- a/example/HelloWorld.cpp
+++ b/example/HelloWorld.cpp
@@ -155,10 +155,7 @@ void HelloWorldWindow::draw(SkCanvas* canvas) {
if (snap->peekPixels(&pmap)) {
const SkImageInfo& info = pmap.info();
fRenderTarget->writePixels(0, 0, snap->width(), snap->height(),
- SkImageInfo2GrPixelConfig(info.colorType(),
- info.alphaType(),
- info.profileType(),
- *fContext->caps()),
+ SkImageInfo2GrPixelConfig(info, *fContext->caps()),
msarett 2016/06/16 15:56:03 nit: formatting Feel free to ignore this comment.
pmap.addr(),
pmap.rowBytes(),
GrContext::kFlushWrites_PixelOp);
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | include/core/SkBitmap.h » ('j') | samplecode/SampleApp.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698