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

Unified Diff: src/effects/gradients/SkGradientBitmapCache.h

Issue 474983005: rename gradients private BitmapCache to GradientBitmapCache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 | « src/effects/gradients/SkBitmapCache.cpp ('k') | src/effects/gradients/SkGradientBitmapCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/gradients/SkGradientBitmapCache.h
diff --git a/src/effects/gradients/SkBitmapCache.h b/src/effects/gradients/SkGradientBitmapCache.h
similarity index 69%
rename from src/effects/gradients/SkBitmapCache.h
rename to src/effects/gradients/SkGradientBitmapCache.h
index d2af5e136fc9791b0565103f023f732133be0455..009b9561a7c45d7b1182e8dd89821f842a4c71ac 100644
--- a/src/effects/gradients/SkBitmapCache.h
+++ b/src/effects/gradients/SkGradientBitmapCache.h
@@ -7,15 +7,15 @@
*/
-#ifndef SkBitmapCache_DEFINED
-#define SkBitmapCache_DEFINED
+#ifndef SkGradientBitmapCache_DEFINED
+#define SkGradientBitmapCache_DEFINED
#include "SkBitmap.h"
-class SkBitmapCache : SkNoncopyable {
+class SkGradientBitmapCache : SkNoncopyable {
public:
- SkBitmapCache(int maxEntries);
- ~SkBitmapCache();
+ SkGradientBitmapCache(int maxEntries);
+ ~SkGradientBitmapCache();
bool find(const void* buffer, size_t len, SkBitmap*) const;
void add(const void* buffer, size_t len, const SkBitmap&);
@@ -39,10 +39,10 @@ private:
class AutoValidate : SkNoncopyable {
public:
- AutoValidate(const SkBitmapCache* bc) : fBC(bc) { bc->validate(); }
+ AutoValidate(const SkGradientBitmapCache* bc) : fBC(bc) { bc->validate(); }
~AutoValidate() { fBC->validate(); }
private:
- const SkBitmapCache* fBC;
+ const SkGradientBitmapCache* fBC;
};
};
« no previous file with comments | « src/effects/gradients/SkBitmapCache.cpp ('k') | src/effects/gradients/SkGradientBitmapCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698