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

Unified Diff: include/effects/SkLayerDrawLooper.h

Issue 232913003: Make sure SkDrawLooper objects can only be allocated on the heap. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 8 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
« no previous file with comments | « include/effects/SkBlurDrawLooper.h ('k') | samplecode/SampleTextOnPath.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/effects/SkLayerDrawLooper.h
diff --git a/include/effects/SkLayerDrawLooper.h b/include/effects/SkLayerDrawLooper.h
index 1e76ce21e5817a90854d136bdfb224e637854c01..fe660a8aaee9b329c6163c9c249bf3c7102889bd 100644
--- a/include/effects/SkLayerDrawLooper.h
+++ b/include/effects/SkLayerDrawLooper.h
@@ -17,7 +17,6 @@ class SK_API SkLayerDrawLooper : public SkDrawLooper {
public:
SK_DECLARE_INST_COUNT(SkLayerDrawLooper)
- SkLayerDrawLooper();
virtual ~SkLayerDrawLooper();
/**
@@ -74,26 +73,6 @@ public:
LayerInfo();
};
- /**
- * Call for each layer you want to add (from top to bottom).
- * This returns a paint you can modify, but that ptr is only valid until
- * the next call made to addLayer().
- */
- SkPaint* addLayer(const LayerInfo&);
-
- /**
- * This layer will draw with the original paint, at the specified offset
- */
- void addLayer(SkScalar dx, SkScalar dy);
-
- /**
- * This layer will with the original paint and no offset.
- */
- void addLayer() { this->addLayer(0, 0); }
-
- /// Similar to addLayer, but adds a layer to the top.
- SkPaint* addLayerOnTop(const LayerInfo&);
-
virtual SkDrawLooper::Context* createContext(SkCanvas*, void* storage) const SK_OVERRIDE;
virtual size_t contextSize() const SK_OVERRIDE { return sizeof(LayerDrawLooperContext); }
@@ -105,6 +84,8 @@ public:
static SkFlattenable* CreateProc(SkReadBuffer& buffer);
protected:
+ SkLayerDrawLooper();
+
virtual void flatten(SkWriteBuffer&) const SK_OVERRIDE;
private:
« no previous file with comments | « include/effects/SkBlurDrawLooper.h ('k') | samplecode/SampleTextOnPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698