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

Unified Diff: include/core/SkDevice.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/core/SkDevice.h
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index 3b5d38a6af57187e22b3e26fcf890ee00f6a6d08..d9468daa563e1ffc99c8a3a3c79458f4559c6e38 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -13,6 +13,7 @@
#include "SkCanvas.h"
#include "SkColor.h"
#include "SkImageFilter.h"
+#include "SkSurfaceProps.h"
class SkClipStack;
class SkDraw;
@@ -21,7 +22,6 @@ struct SkIRect;
class SkMatrix;
class SkMetaData;
class SkRegion;
-struct SkDeviceProperties;
class GrRenderTarget;
class SK_API SkBaseDevice : public SkRefCnt {
@@ -32,7 +32,7 @@ public:
* Construct a new device.
*/
SkBaseDevice();
- explicit SkBaseDevice(const SkDeviceProperties&);
+ explicit SkBaseDevice(const SkSurfaceProps&);
virtual ~SkBaseDevice();
SkMetaData& getMetaData();
@@ -315,8 +315,8 @@ protected:
* If the device does handle a property, that property should be set to the identity value
* for that property, effectively making it non-leaky.
*/
- const SkDeviceProperties& getLeakyProperties() const {
- return *fLeakyProperties;
+ const SkSurfaceProps& getLeakyProperties() const {
+ return fLeakyProperties;
}
/**
@@ -399,7 +399,7 @@ private:
SkIPoint fOrigin;
SkMetaData* fMetaData;
- SkDeviceProperties* fLeakyProperties; // will always exist.
+ SkSurfaceProps fLeakyProperties;
#ifdef SK_DEBUG
bool fAttachedToCanvas;
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkPaint.h » ('j') | src/gpu/SkGpuDevice.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698