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

Side by Side Diff: tools/android/SkAndroidSDKCanvas.h

Issue 1817383002: switch surface to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « tools/VisualBench/WrappedBenchmark.h ('k') | tools/android/SkAndroidSDKCanvas.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 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const SkRect& dst, const SkPaint*) override; 80 const SkRect& dst, const SkPaint*) override;
81 81
82 // PASS THROUGH 82 // PASS THROUGH
83 83
84 void onDrawDrawable(SkDrawable*, const SkMatrix*) override; 84 void onDrawDrawable(SkDrawable*, const SkMatrix*) override;
85 SkISize getBaseLayerSize() const override; 85 SkISize getBaseLayerSize() const override;
86 bool getClipBounds(SkRect*) const override; 86 bool getClipBounds(SkRect*) const override;
87 bool getClipDeviceBounds(SkIRect*) const override; 87 bool getClipDeviceBounds(SkIRect*) const override;
88 bool isClipEmpty() const override; 88 bool isClipEmpty() const override;
89 bool isClipRect() const override; 89 bool isClipRect() const override;
90 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) override; 90 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove rride;
91 bool onPeekPixels(SkPixmap*) override; 91 bool onPeekPixels(SkPixmap*) override;
92 bool onAccessTopLayerPixels(SkPixmap*) override; 92 bool onAccessTopLayerPixels(SkPixmap*) override;
93 void willSave() override; 93 void willSave() override;
94 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; 94 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override;
95 void willRestore() override; 95 void willRestore() override;
96 void didRestore() override; 96 void didRestore() override;
97 void didConcat(const SkMatrix&) override; 97 void didConcat(const SkMatrix&) override;
98 void didSetMatrix(const SkMatrix&) override; 98 void didSetMatrix(const SkMatrix&) override;
99 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 99 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
100 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 100 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
101 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 101 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
102 void onClipRegion(const SkRegion&, SkRegion::Op) override; 102 void onClipRegion(const SkRegion&, SkRegion::Op) override;
103 void onDiscard() override; 103 void onDiscard() override;
104 104
105 protected: 105 protected:
106 SkCanvas* fProxyTarget; 106 SkCanvas* fProxyTarget;
107 }; 107 };
108 108
109 #endif // SkAndroidSDKCanvas_DEFINED 109 #endif // SkAndroidSDKCanvas_DEFINED
110 110
OLDNEW
« no previous file with comments | « tools/VisualBench/WrappedBenchmark.h ('k') | tools/android/SkAndroidSDKCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698