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

Unified Diff: gm/colorspacexform.cpp

Issue 2390263002: Add SkColorSpaceXform to the public API (Closed)
Patch Set: Remove type on enum Created 4 years, 2 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 | « bench/ColorCodecBench.cpp ('k') | include/core/SkColorSpaceXform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/colorspacexform.cpp
diff --git a/gm/colorspacexform.cpp b/gm/colorspacexform.cpp
index 34abdc4b79e7f828cbec7bde81892d6fdb322891..33320ba5a865c834e9cce31a86ba1dfe225604ef 100644
--- a/gm/colorspacexform.cpp
+++ b/gm/colorspacexform.cpp
@@ -41,9 +41,9 @@ protected:
std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(srcSpace.get(),
dstSpace.get());
- xform->apply(fWideGamutColors, colors, kNumColors,
- SkColorSpaceXform::kRGBA_F32_ColorFormat,
- SkColorSpaceXform::kBGRA_8888_ColorFormat, kOpaque_SkAlphaType);
+ xform->apply(SkColorSpaceXform::kRGBA_F32_ColorFormat, fWideGamutColors,
+ SkColorSpaceXform::kBGRA_8888_ColorFormat, colors, kNumColors,
+ kOpaque_SkAlphaType);
}
SkString onShortName() override {
« no previous file with comments | « bench/ColorCodecBench.cpp ('k') | include/core/SkColorSpaceXform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698