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

Side by Side Diff: src/svg/SkSVGDevice.h

Issue 2168483003: Deprecate SkDevice::accessBitmap method (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 5 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
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 SkSVGDevice_DEFINED 8 #ifndef SkSVGDevice_DEFINED
9 #define SkSVGDevice_DEFINED 9 #define SkSVGDevice_DEFINED
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const SkPath& path, const SkMatrix* matrix, 48 const SkPath& path, const SkMatrix* matrix,
49 const SkPaint& paint) override; 49 const SkPaint& paint) override;
50 void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCount, 50 void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCount,
51 const SkPoint verts[], const SkPoint texs[], 51 const SkPoint verts[], const SkPoint texs[],
52 const SkColor colors[], SkXfermode* xmode, 52 const SkColor colors[], SkXfermode* xmode,
53 const uint16_t indices[], int indexCount, 53 const uint16_t indices[], int indexCount,
54 const SkPaint& paint) override; 54 const SkPaint& paint) override;
55 55
56 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 56 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
57 const SkPaint&) override; 57 const SkPaint&) override;
58 const SkBitmap& onAccessBitmap() override;
59 58
60 private: 59 private:
61 SkSVGDevice(const SkISize& size, SkXMLWriter* writer); 60 SkSVGDevice(const SkISize& size, SkXMLWriter* writer);
62 virtual ~SkSVGDevice(); 61 virtual ~SkSVGDevice();
63 62
64 void drawBitmapCommon(const SkDraw& draw, const SkBitmap& bm, const SkPaint& paint); 63 void drawBitmapCommon(const SkDraw& draw, const SkBitmap& bm, const SkPaint& paint);
65 64
66 class AutoElement; 65 class AutoElement;
67 class ResourceBucket; 66 class ResourceBucket;
68 67
69 SkXMLWriter* fWriter; 68 SkXMLWriter* fWriter;
70 SkAutoTDelete<AutoElement> fRootElement; 69 SkAutoTDelete<AutoElement> fRootElement;
71 SkAutoTDelete<ResourceBucket> fResourceBucket; 70 SkAutoTDelete<ResourceBucket> fResourceBucket;
72 SkBitmap fLegacyBitmap; 71 SkISize fSize;
73 72
74 typedef SkBaseDevice INHERITED; 73 typedef SkBaseDevice INHERITED;
75 }; 74 };
76 75
77 #endif // SkSVGDevice_DEFINED 76 #endif // SkSVGDevice_DEFINED
OLDNEW
« src/gpu/SkGpuDevice.h ('K') | « src/pdf/SkPDFDevice.cpp ('k') | src/svg/SkSVGDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698