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

Unified Diff: src/core/SkBitmap.cpp

Issue 169913003: replace SkBitmap::Config with SkColorType in gms (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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
Index: src/core/SkBitmap.cpp
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index 151ab50290f53359b3103a364757b452e6dee469..78d62d93678aa6599d4655ae9141abc3806a17be 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -519,6 +519,12 @@ bool SkBitmap::installPixels(const SkImageInfo& info, void* pixels, size_t rb,
return true;
}
+bool SkBitmap::installMaskPixels(const SkMask& mask) {
+ return this->installPixels(SkImageInfo::MakeA8(mask.fBounds.width(),
hal.canary 2014/02/17 20:11:31 You are assuming that (mask.fFormat == SkMask::kA8
+ mask.fBounds.height()),
+ mask.fImage, mask.fRowBytes);
+}
+
bool SkBitmap::allocConfigPixels(Config config, int width, int height,
bool isOpaque) {
SkColorType ct;

Powered by Google App Engine
This is Rietveld 408576698