OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 SkAndroidSDKCanvas_DEFINED | 8 #ifndef SkAndroidSDKCanvas_DEFINED |
9 #define SkAndroidSDKCanvas_DEFINED | 9 #define SkAndroidSDKCanvas_DEFINED |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // PASS THROUGH | 79 // PASS THROUGH |
80 | 80 |
81 void onDrawDrawable(SkDrawable*) override; | 81 void onDrawDrawable(SkDrawable*) override; |
82 SkISize getBaseLayerSize() const override; | 82 SkISize getBaseLayerSize() const override; |
83 bool getClipBounds(SkRect*) const override; | 83 bool getClipBounds(SkRect*) const override; |
84 bool getClipDeviceBounds(SkIRect*) const override; | 84 bool getClipDeviceBounds(SkIRect*) const override; |
85 bool isClipEmpty() const override; | 85 bool isClipEmpty() const override; |
86 bool isClipRect() const override; | 86 bool isClipRect() const override; |
87 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override; | 87 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override; |
88 const void* onPeekPixels(SkImageInfo*, size_t*) override; | 88 bool onPeekPixels(SkPixmap*) override; |
89 void* onAccessTopLayerPixels(SkImageInfo*, size_t*) override; | 89 bool onAccessTopLayerPixels(SkPixmap*) override; |
90 void willSave() override; | 90 void willSave() override; |
91 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov
erride; | 91 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov
erride; |
92 void willRestore() override; | 92 void willRestore() override; |
93 void didRestore() override; | 93 void didRestore() override; |
94 void didConcat(const SkMatrix&) override; | 94 void didConcat(const SkMatrix&) override; |
95 void didSetMatrix(const SkMatrix&) override; | 95 void didSetMatrix(const SkMatrix&) override; |
96 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; | 96 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; |
97 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; | 97 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; |
98 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; | 98 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; |
99 void onClipRegion(const SkRegion&, SkRegion::Op) override; | 99 void onClipRegion(const SkRegion&, SkRegion::Op) override; |
100 void onDiscard() override; | 100 void onDiscard() override; |
101 | 101 |
102 protected: | 102 protected: |
103 SkCanvas* fProxyTarget; | 103 SkCanvas* fProxyTarget; |
104 }; | 104 }; |
105 | 105 |
106 #endif // SkAndroidSDKCanvas_DEFINED | 106 #endif // SkAndroidSDKCanvas_DEFINED |
107 | 107 |
OLD | NEW |