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

Unified Diff: src/gpu/GrTextContext.h

Issue 1196683003: remove SkDeviceProperties (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up Created 5 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
Index: src/gpu/GrTextContext.h
diff --git a/src/gpu/GrTextContext.h b/src/gpu/GrTextContext.h
index 775203e544f61faf3ca15eeee4a8e988a4abdb37..e7b5c3ac5d54971ff9952a3ae251fd8a0161d436 100644
--- a/src/gpu/GrTextContext.h
+++ b/src/gpu/GrTextContext.h
@@ -11,7 +11,7 @@
#include "GrClip.h"
#include "GrGlyph.h"
#include "GrPaint.h"
-#include "SkDeviceProperties.h"
+#include "SkSurfaceProps.h"
#include "SkPostConfig.h"
class GrClip;
@@ -46,7 +46,7 @@ public:
protected:
GrTextContext* fFallbackTextContext;
GrContext* fContext;
- SkDeviceProperties fDeviceProperties;
+ SkSurfaceProps fSurfaceProps;
GrDrawContext* fDrawContext; // owning drawContext
SkAutoTUnref<GrRenderTarget> fRenderTarget;
@@ -56,7 +56,7 @@ protected:
GrPaint fPaint;
SkPaint fSkPaint;
- GrTextContext(GrContext*, GrDrawContext*, const SkDeviceProperties&);
+ GrTextContext(GrContext*, GrDrawContext*, const SkSurfaceProps&);
virtual bool canDraw(const GrRenderTarget*, const GrClip&, const GrPaint&,
const SkPaint&, const SkMatrix& viewMatrix) = 0;
@@ -89,7 +89,7 @@ protected:
// sets extent in stopVector and returns glyph count
static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc,
const char text[], size_t byteLength, SkVector* stopVector);
- static uint32_t FilterTextFlags(const SkDeviceProperties& devProps, const SkPaint& paint);
+ static uint32_t FilterTextFlags(const SkSurfaceProps& surfaceProps, const SkPaint& paint);
friend class BitmapTextBatch;
};

Powered by Google App Engine
This is Rietveld 408576698