GMs: Call SkBitmap::notifyPixelsChanged()
Motivation: SkPDF uses the generation ID to to de-duplicate bitmaps.
gammaencodedpremul.cpp was not drawing correctly before this change.
Change-Id: I6c59758ee0693f18e6ed7c51b22ee748af604ddc
Reviewed-on: https://skia-review.googlesource.com/22207
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
diff --git a/gm/gammaencodedpremul.cpp b/gm/gammaencodedpremul.cpp
index d55498b..4322807 100644
--- a/gm/gammaencodedpremul.cpp
+++ b/gm/gammaencodedpremul.cpp
@@ -80,6 +80,7 @@
SkColorSpaceXform::kBGRA_8888_ColorFormat, row, kAlphaMax,
kUnpremul_SkAlphaType);
SkOpts::RGBA_to_rgbA(pixels, pixels, kAlphaMax);
+ bitmap.notifyPixelsChanged();
// Write the dst space premultiplied row to the canvas.
for (int j = 0; j < kStripeHeight; j++) {
@@ -92,6 +93,7 @@
SkColorSpaceXform::kBGRA_8888_ColorFormat, pixels, kAlphaMax,
kUnpremul_SkAlphaType);
clamp_to_alpha(pixels, kAlphaMax);
+ bitmap.notifyPixelsChanged();
// Write the src space premultiplied row to the canvas.
for (int j = 0; j < kStripeHeight; j++) {