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

Unified Diff: src/core/SkLiteDL.h

Issue 2224753002: SkLiteDL: closing in (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tidy up... only structs in namespace{} 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 | « no previous file | 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 3dc87790833763a878a2ea59171b260e34591e88..cbefdf55d881fcf2b19ea7aa0faf8814c08076c8 100644
--- a/src/core/SkLiteDL.h
+++ b/src/core/SkLiteDL.h
@@ -15,10 +15,14 @@
#include "SkRect.h"
#include "SkTDArray.h"
+class GrContext;
+
class SkLiteDL final : public SkDrawable {
public:
static sk_sp<SkLiteDL> New(SkRect);
+ void optimizeFor(GrContext*);
+
void save();
void saveLayer(const SkRect*, const SkPaint*, const SkImageFilter*, uint32_t);
void restore();
@@ -45,21 +49,24 @@ public:
void drawPicture (const SkPicture*, const SkMatrix*, const SkPaint*) {/*TODO*/}
void drawShadowedPicture(const SkPicture*, const SkMatrix*, const SkPaint*) {/*TODO*/}
- void drawText (const void*, size_t, SkScalar, SkScalar, const SkPaint&) {/*TODO*/}
- void drawPosText (const void*, size_t, const SkPoint[], const SkPaint&) {/*TODO*/}
- void drawPosTextH (const void*, size_t, const SkScalar[], SkScalar, const SkPaint&) {/*TODO*/}
+ void drawText (const void*, size_t, SkScalar, SkScalar, const SkPaint&);
+ void drawPosText (const void*, size_t, const SkPoint[], const SkPaint&);
+ void drawPosTextH (const void*, size_t, const SkScalar[], SkScalar, const SkPaint&);
void drawTextOnPath (const void*, size_t, const SkPath&, const SkMatrix*, const SkPaint&) {/*TODO*/}
void drawTextRSXForm(const void*, size_t, const SkRSXform[], const SkRect*, const SkPaint&) {/*TODO*/}
- void drawTextBlob (const SkTextBlob*, SkScalar,SkScalar, const SkPaint&) {/*TODO*/}
-
- void drawBitmap (const SkBitmap&, SkScalar,SkScalar, const SkPaint*) {/*TODO*/}
- void drawBitmapNine(const SkBitmap&, SkIRect, const SkRect&, const SkPaint*) {/*TODO*/}
- void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*, bool) {/*TODO*/}
-
- void drawImage (const SkImage*, SkScalar,SkScalar, const SkPaint*) {/*TODO*/}
- void drawImageNine (const SkImage*, SkIRect, const SkRect&, const SkPaint*) {/*TODO*/}
- void drawImageRect (const SkImage*, const SkRect*, const SkRect&, const SkPaint*, bool) {/*TODO*/}
- void drawImageLattice(const SkImage*, SkCanvas::Lattice, const SkRect&, const SkPaint*) {/*TODO*/}
+ void drawTextBlob (const SkTextBlob*, SkScalar,SkScalar, const SkPaint&);
+
+ void drawBitmap (const SkBitmap&, SkScalar, SkScalar, const SkPaint*);
+ void drawBitmapNine(const SkBitmap&, const SkIRect&, const SkRect&, const SkPaint*);
+ void drawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*,
+ SkCanvas::SrcRectConstraint);
+
+ void drawImage (const SkImage*, SkScalar,SkScalar, const SkPaint*);
+ void drawImageNine(const SkImage*, const SkIRect&, const SkRect&, const SkPaint*);
+ void drawImageRect(const SkImage*, const SkRect*, const SkRect&, const SkPaint*,
+ SkCanvas::SrcRectConstraint);
+ void drawImageLattice(const SkImage*, const SkCanvas::Lattice&, const SkRect&, const SkPaint*)
+ {/*TODO*/}
void drawPatch(const SkPoint[12], const SkColor[4], const SkPoint[4],
SkXfermode*, const SkPaint&) {/*TODO*/}
« no previous file with comments | « no previous file | src/core/SkLiteDL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698