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

Unified Diff: src/core/SkLiteDL.h

Issue 2248693004: SkLiteDL: remove freelisting, add reset() and SKLITEDL_PAGE knob. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | « src/core/SkGraphics.cpp ('k') | src/core/SkLiteDL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkLiteDL.h
diff --git a/src/core/SkLiteDL.h b/src/core/SkLiteDL.h
index 27e3479e0378e7eeb71045cf1917a3b2f7cec7c3..7a15eb551b747848e5c4999dd8e01bd8c20f4bf2 100644
--- a/src/core/SkLiteDL.h
+++ b/src/core/SkLiteDL.h
@@ -20,8 +20,7 @@ class GrContext;
class SkLiteDL final : public SkDrawable {
public:
static sk_sp<SkLiteDL> New(SkRect);
-
- static void PurgeFreelist();
+ void reset(SkRect);
void optimizeFor(GrContext*);
void makeThreadsafe();
@@ -79,11 +78,9 @@ public:
SkXfermode::Mode, const SkRect*, const SkPaint*);
private:
- SkLiteDL();
+ SkLiteDL(SkRect);
~SkLiteDL();
- void internal_dispose() const override;
-
SkRect onGetBounds() override;
void onDraw(SkCanvas*) override;
@@ -97,10 +94,6 @@ private:
size_t fUsed;
size_t fReserved;
SkRect fBounds;
-
- // Only used for freelisting.
- SkLiteDL* fNext;
- int fUsesRemaining;
};
#endif//SkLiteDL_DEFINED
« no previous file with comments | « src/core/SkGraphics.cpp ('k') | src/core/SkLiteDL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698