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

Side by Side Diff: include/core/SkBitmapDevice.h

Issue 424663006: SkCanvas interface for drawing a patch. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkBitmapDevice_DEFINED 9 #ifndef SkBitmapDevice_DEFINED
10 #define SkBitmapDevice_DEFINED 10 #define SkBitmapDevice_DEFINED
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const SkScalar pos[], SkScalar constY, 97 const SkScalar pos[], SkScalar constY,
98 int scalarsPerPos, const SkPaint& paint) SK_OVERRID E; 98 int scalarsPerPos, const SkPaint& paint) SK_OVERRID E;
99 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len, 99 virtual void drawTextOnPath(const SkDraw&, const void* text, size_t len,
100 const SkPath& path, const SkMatrix* matrix, 100 const SkPath& path, const SkMatrix* matrix,
101 const SkPaint& paint) SK_OVERRIDE; 101 const SkPaint& paint) SK_OVERRIDE;
102 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt, 102 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCou nt,
103 const SkPoint verts[], const SkPoint texs[], 103 const SkPoint verts[], const SkPoint texs[],
104 const SkColor colors[], SkXfermode* xmode, 104 const SkColor colors[], SkXfermode* xmode,
105 const uint16_t indices[], int indexCount, 105 const uint16_t indices[], int indexCount,
106 const SkPaint& paint) SK_OVERRIDE; 106 const SkPaint& paint) SK_OVERRIDE;
107 virtual void drawPatch(const SkDraw&, const SkPatch& patch, const SkPaint& p aint) SK_OVERRIDE;
107 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a call to 108 /** The SkBaseDevice passed will be an SkBaseDevice which was returned by a call to
108 onCreateDevice on this device with kSaveLayer_Usage. 109 onCreateDevice on this device with kSaveLayer_Usage.
109 */ 110 */
110 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 111 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
111 const SkPaint&) SK_OVERRIDE; 112 const SkPaint&) SK_OVERRIDE;
112 113
113 /////////////////////////////////////////////////////////////////////////// 114 ///////////////////////////////////////////////////////////////////////////
114 115
115 /** Update as needed the pixel value in the bitmap, so that the caller can 116 /** Update as needed the pixel value in the bitmap, so that the caller can
116 access the pixels directly. Note: only the pixels field should be 117 access the pixels directly. Note: only the pixels field should be
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 156
156 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; 157 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE;
157 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; 158 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE;
158 159
159 SkBitmap fBitmap; 160 SkBitmap fBitmap;
160 161
161 typedef SkBaseDevice INHERITED; 162 typedef SkBaseDevice INHERITED;
162 }; 163 };
163 164
164 #endif // SkBitmapDevice_DEFINED 165 #endif // SkBitmapDevice_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698