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

Unified Diff: include/core/SkBitmap.h

Issue 18029021: add bitmap::eraseArea (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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
« no previous file with comments | « no previous file | src/core/SkBitmap.cpp » ('j') | src/core/SkBitmap.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkBitmap.h
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index 86e267ccdd99004333072570291c126d00c30236..2b3ad0089abe75d2a06e33cf67cbcd36a87322e2 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -408,6 +408,8 @@ public:
SkColorGetB(c));
}
+ void eraseArea(const SkIRect& area, SkColor c) const;
scroggo 2013/06/28 19:02:35 Documentation?
reed1 2013/06/28 19:31:54 Done.
+
/** Scroll (a subset of) the contents of this bitmap by dx/dy. If there are
no pixels allocated (i.e. getPixels() returns null) the method will
still update the inval region (if present). If the bitmap is immutable,
@@ -665,6 +667,8 @@ private:
uint8_t fFlags;
uint8_t fBytesPerPixel; // based on config
+ void internalErase(const SkIRect&, U8CPU a, U8CPU r, U8CPU g, U8CPU b)const;
+
/* Internal computations for safe size.
*/
static Sk64 ComputeSafeSize64(Config config,
« no previous file with comments | « no previous file | src/core/SkBitmap.cpp » ('j') | src/core/SkBitmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698