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

Side by Side Diff: src/core/SkLiteDL.h

Issue 2226513002: flesh out more of SkLiteDL: (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: better, simpler 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/core/SkLiteDL.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkLiteDL_DEFINED 8 #ifndef SkLiteDL_DEFINED
9 #define SkLiteDL_DEFINED 9 #define SkLiteDL_DEFINED
10 10
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkPaint.h" 12 #include "SkPaint.h"
13 #include "SkPath.h" 13 #include "SkPath.h"
14 #include "SkDrawable.h" 14 #include "SkDrawable.h"
15 #include "SkRect.h" 15 #include "SkRect.h"
16 #include "SkTDArray.h" 16 #include "SkTDArray.h"
17 17
18 class SkLiteDL final : public SkDrawable { 18 class SkLiteDL final : public SkDrawable {
19 public: 19 public:
20 static sk_sp<SkLiteDL> New(SkRect); 20 static sk_sp<SkLiteDL> New(SkRect);
21 21
22 void save(); 22 void save();
23 void saveLayer(const SkRect*, const SkPaint*, const SkImageFilter*, uint32_t ) {/*TODO*/} 23 void saveLayer(const SkRect*, const SkPaint*, const SkImageFilter*, uint32_t );
24 void restore(); 24 void restore();
25 25
26 void concat (const SkMatrix&); 26 void concat (const SkMatrix&);
27 void setMatrix (const SkMatrix&); 27 void setMatrix (const SkMatrix&);
28 void translateZ(SkScalar) {/*TODO*/} 28 void translateZ(SkScalar) {/*TODO*/}
29 29
30 void clipPath (const SkPath&, SkRegion::Op, bool aa) {/*TODO*/} 30 void clipPath (const SkPath&, SkRegion::Op, bool aa);
31 void clipRRect (const SkRRect&, SkRegion::Op, bool aa) {/*TODO*/}
32 void clipRect (const SkRect&, SkRegion::Op, bool aa); 31 void clipRect (const SkRect&, SkRegion::Op, bool aa);
33 void clipRegion(const SkRegion&, SkRegion::Op) {/*TODO*/} 32 void clipRRect (const SkRRect&, SkRegion::Op, bool aa);
33 void clipRegion(const SkRegion&, SkRegion::Op);
34 34
35 35
36 void drawPaint (const SkPaint&) {/*TODO*/} 36 void drawPaint (const SkPaint&);
37 void drawPath (const SkPath&, const SkPaint&); 37 void drawPath (const SkPath&, const SkPaint&);
38 void drawRect (const SkRect&, const SkPaint&); 38 void drawRect (const SkRect&, const SkPaint&);
39 void drawOval (const SkRect&, const SkPaint&) {/*TODO*/} 39 void drawOval (const SkRect&, const SkPaint&);
40 void drawRRect (const SkRRect&, const SkPaint&) {/*TODO*/} 40 void drawRRect (const SkRRect&, const SkPaint&);
41 void drawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) {/*TODO*/} 41 void drawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
42 42
43 void drawAnnotation (const SkRect&, const char*, SkData*) {/*TODO*/} 43 void drawAnnotation (const SkRect&, const char*, SkData*) {/*TODO*/}
44 void drawDrawable (SkDrawable*, const SkMatrix*) {/*TODO*/} 44 void drawDrawable (SkDrawable*, const SkMatrix*) {/*TODO*/}
45 void drawPicture (const SkPicture*, const SkMatrix*, const SkPaint*) {/*TODO*/} 45 void drawPicture (const SkPicture*, const SkMatrix*, const SkPaint*) {/*TODO*/}
46 void drawShadowedPicture(const SkPicture*, const SkMatrix*, const SkPaint*) {/*TODO*/} 46 void drawShadowedPicture(const SkPicture*, const SkMatrix*, const SkPaint*) {/*TODO*/}
47 47
48 void drawText (const void*, size_t, SkScalar, SkScalar, const SkPaint& ) {/*TODO*/} 48 void drawText (const void*, size_t, SkScalar, SkScalar, const SkPaint& ) {/*TODO*/}
49 void drawPosText (const void*, size_t, const SkPoint[], const SkPaint&) { /*TODO*/} 49 void drawPosText (const void*, size_t, const SkPoint[], const SkPaint&) { /*TODO*/}
50 void drawPosTextH (const void*, size_t, const SkScalar[], SkScalar, const SkPaint&) {/*TODO*/} 50 void drawPosTextH (const void*, size_t, const SkScalar[], SkScalar, const SkPaint&) {/*TODO*/}
51 void drawTextOnPath (const void*, size_t, const SkPath&, const SkMatrix*, co nst SkPaint&) {/*TODO*/} 51 void drawTextOnPath (const void*, size_t, const SkPath&, const SkMatrix*, co nst SkPaint&) {/*TODO*/}
(...skipping 25 matching lines...) Expand all
77 77
78 SkRect onGetBounds() override; 78 SkRect onGetBounds() override;
79 void onDraw(SkCanvas*) override; 79 void onDraw(SkCanvas*) override;
80 80
81 SkLiteDL* fNext; 81 SkLiteDL* fNext;
82 SkRect fBounds; 82 SkRect fBounds;
83 SkTDArray<uint8_t> fBytes; 83 SkTDArray<uint8_t> fBytes;
84 }; 84 };
85 85
86 #endif//SkLiteDL_DEFINED 86 #endif//SkLiteDL_DEFINED
OLDNEW
« 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