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

Unified Diff: include/core/SkBitmap.h

Issue 17381008: More general version of image filtering; reworked to be robust and easier to SSE (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: make temp. scale function private; disable GM and bench for that function Created 7 years, 5 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 | « gyp/opts.gyp ('k') | include/core/SkPaint.h » ('j') | include/core/SkPaint.h » ('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 887169ccb522c2820c8c2f0ff3f78e454d0d00cf..495079cbc69b74bcf7b44c28ea3640bc7dd0b4f4 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -538,7 +538,7 @@ public:
by calling copyTo().
*/
bool canCopyTo(Config newConfig) const;
-
+
/**
* DEPRECATED -- will be replaced with API on SkPaint
*/
@@ -702,6 +702,16 @@ private:
int extractMipLevel(SkBitmap* dst, SkFixed sx, SkFixed sy);
bool hasMipMap() const;
void freeMipMap();
+
+ /** Make a scaled copy of this bitmap into the provided destination.
+ * The caller is responsible for having set the width and height of the
+ * provided destination bitmap, and also having allocated its pixel memory.
+ *
+ * This function is temporary and for testing purposes only; it will likely
+ * move once it has been properly plumbed into the bitmap shader infrastructure.
reed1 2013/07/09 17:26:29 this is an 80-col file
humper 2013/07/09 17:46:13 Done.
+ */
+
+ void scale(SkBitmap *dst) const;
humper 2013/07/09 17:21:18 Made private; disabled the GM and bench.
friend struct SkBitmapProcState;
};
« no previous file with comments | « gyp/opts.gyp ('k') | include/core/SkPaint.h » ('j') | include/core/SkPaint.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698