aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrBitmapTextContext.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-03-20 10:30:14 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-20 10:30:14 -0700
commit6e8cd9671958c69babde9338c5c18a4c3d895575 (patch)
treeeab4eb9c66a7b1831f589fac0bffc5c08f6852f6 /src/gpu/GrBitmapTextContext.h
parent1b600d3446b3d236bfa06cf116ec41960bea6ac8 (diff)
Let text contexts fall back directly to paths
Diffstat (limited to 'src/gpu/GrBitmapTextContext.h')
-rw-r--r--src/gpu/GrBitmapTextContext.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gpu/GrBitmapTextContext.h b/src/gpu/GrBitmapTextContext.h
index e181fd2b69..e389f81480 100644
--- a/src/gpu/GrBitmapTextContext.h
+++ b/src/gpu/GrBitmapTextContext.h
@@ -19,7 +19,7 @@ class GrTextStrike;
*/
class GrBitmapTextContext : public GrTextContext {
public:
- static GrBitmapTextContext* Create(GrContext*, const SkDeviceProperties&);
+ static GrBitmapTextContext* Create(GrContext*, SkGpuDevice*, const SkDeviceProperties&);
virtual ~GrBitmapTextContext() {}
@@ -37,20 +37,21 @@ private:
uint32_t fEffectTextureUniqueID;
SkMatrix fLocalMatrix;
- GrBitmapTextContext(GrContext*, const SkDeviceProperties&);
+ GrBitmapTextContext(GrContext*, SkGpuDevice*, const SkDeviceProperties&);
bool canDraw(const SkPaint& paint, const SkMatrix& viewMatrix) SK_OVERRIDE;
virtual void onDrawText(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPaint&,
const SkMatrix& viewMatrix, const char text[], size_t byteLength,
- SkScalar x, SkScalar y) SK_OVERRIDE;
+ SkScalar x, SkScalar y, const SkIRect& regionClipBounds) SK_OVERRIDE;
virtual void onDrawPosText(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPaint&,
const SkMatrix& viewMatrix,
const char text[], size_t byteLength,
const SkScalar pos[], int scalarsPerPosition,
- const SkPoint& offset) SK_OVERRIDE;
+ const SkPoint& offset, const SkIRect& regionClipBounds) SK_OVERRIDE;
- void init(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPaint&);
+ void init(GrRenderTarget*, const GrClip&, const GrPaint&, const SkPaint&,
+ const SkIRect& regionClipBounds);
void appendGlyph(GrGlyph::PackedID, SkFixed left, SkFixed top, GrFontScaler*);
bool uploadGlyph(GrGlyph*, GrFontScaler*);
void flush(); // automatically called by destructor