Index: src/fonts/SkRandomScalerContext.h |
diff --git a/src/fonts/SkGScalerContext.h b/src/fonts/SkRandomScalerContext.h |
similarity index 76% |
copy from src/fonts/SkGScalerContext.h |
copy to src/fonts/SkRandomScalerContext.h |
index 75f3ebedbdeadc980f47f6d9c17b08cb696f5fa5..8ad22beff04e6c47aff7a9855fb237307ae7dd4b 100644 |
--- a/src/fonts/SkGScalerContext.h |
+++ b/src/fonts/SkRandomScalerContext.h |
@@ -1,20 +1,25 @@ |
/* |
- * Copyright 2013 Google Inc. |
+ * Copyright 2015 Google Inc. |
* |
* Use of this source code is governed by a BSD-style license that can be |
* found in the LICENSE file. |
*/ |
-#ifndef SkGScalerContext_DEFINED |
-#define SkGScalerContext_DEFINED |
+#ifndef SkRandomScalerContext_DEFINED |
+#define SkRandomScalerContext_DEFINED |
#include "SkScalerContext.h" |
#include "SkTypeface.h" |
-class SkGTypeface : public SkTypeface { |
+/* |
+ * This scaler context is for debug only purposes. It will 'randomly' but deterministically return |
+ * LCD / A8 / BW / RBGA masks based off of the Glyph ID |
+ */ |
+ |
+class SkRandomTypeface : public SkTypeface { |
public: |
- SkGTypeface(SkTypeface* proxy, const SkPaint&); |
- virtual ~SkGTypeface(); |
+ SkRandomTypeface(SkTypeface* proxy, const SkPaint&); |
+ virtual ~SkRandomTypeface(); |
SkTypeface* proxy() const { return fProxy; } |
const SkPaint& paint() const { return fPaint; } |