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: include/gpu/GrDrawContext.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: include/gpu/GrDrawContext.h
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h
index 168869413347f9cd37e8d205507b94b96229a062..12bf9430a84d0734d09ee577656dd57af20db644 100644
--- a/include/gpu/GrDrawContext.h
+++ b/include/gpu/GrDrawContext.h
@@ -10,6 +10,7 @@
#include "GrColor.h"
#include "SkRefCnt.h"
+#include "SkSurfaceProps.h"
class GrBatch;
class GrClip;
@@ -23,7 +24,6 @@ class GrRenderTarget;
class GrStrokeInfo;
class GrSurface;
class GrTextContext;
-struct SkDeviceProperties;
class SkDrawFilter;
struct SkIPoint;
struct SkIRect;
@@ -244,14 +244,14 @@ private:
friend class GrAtlasTextContext; // for access to drawBatch
friend class GrContext; // for ctor
- GrDrawContext(GrContext*, GrDrawTarget*, const SkDeviceProperties&);
+ GrDrawContext(GrContext*, GrDrawTarget*, const SkSurfaceProps&);
// Sets the paint. Returns true on success; false on failure.
bool prepareToDraw(GrPipelineBuilder*,
GrRenderTarget* rt,
const GrClip&,
const GrPaint* paint);
- GrTextContext* createTextContext(GrRenderTarget*, const SkDeviceProperties&);
+ GrTextContext* createTextContext(GrRenderTarget*, const SkSurfaceProps&);
// A simpler version of the above which just returns true on success; false on failure.
// Clip is *NOT* set
@@ -273,7 +273,7 @@ private:
GrDrawTarget* fDrawTarget;
GrTextContext* fTextContext; // lazily created
- SkDeviceProperties* fDevProps; // ptr b.c. SkDeviceProperties isn't public
+ SkSurfaceProps fSurfaceProps;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698