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

Side by Side Diff: include/utils/SkDeferredCanvas.h

Issue 1181913003: add SkCanvas::drawAtlas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix warnings Created 5 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
« no previous file with comments | « include/core/SkRSXform.h ('k') | samplecode/SampleAtlas.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 2012 Google Inc. 2 * Copyright 2012 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 SkDeferredCanvas_DEFINED 8 #ifndef SkDeferredCanvas_DEFINED
9 #define SkDeferredCanvas_DEFINED 9 #define SkDeferredCanvas_DEFINED
10 10
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst, 179 void onDrawImageRect(const SkImage*, const SkRect* src, const SkRect& dst,
180 const SkPaint*) override; 180 const SkPaint*) override;
181 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 181 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
182 const SkPaint*) override; 182 const SkPaint*) override;
183 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de; 183 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) overri de;
184 void onDrawVertices(VertexMode vmode, int vertexCount, 184 void onDrawVertices(VertexMode vmode, int vertexCount,
185 const SkPoint vertices[], const SkPoint texs[], 185 const SkPoint vertices[], const SkPoint texs[],
186 const SkColor colors[], SkXfermode* xmode, 186 const SkColor colors[], SkXfermode* xmode,
187 const uint16_t indices[], int indexCount, 187 const uint16_t indices[], int indexCount,
188 const SkPaint&) override; 188 const SkPaint&) override;
189 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk Color[], int count,
190 SkXfermode::Mode, const SkRect* cullRect, const SkPaint*) o verride;
189 191
190 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override; 192 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
191 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override; 193 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
192 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override; 194 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
193 void onClipRegion(const SkRegion&, SkRegion::Op) override; 195 void onClipRegion(const SkRegion&, SkRegion::Op) override;
194 196
195 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 197 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
196 198
197 public: 199 public:
198 class NotificationClient { 200 class NotificationClient {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 250
249 mutable SkISize fCachedCanvasSize; 251 mutable SkISize fCachedCanvasSize;
250 mutable bool fCachedCanvasSizeDirty; 252 mutable bool fCachedCanvasSizeDirty;
251 253
252 friend class SkDeferredCanvasTester; // for unit testing 254 friend class SkDeferredCanvasTester; // for unit testing
253 typedef SkCanvas INHERITED; 255 typedef SkCanvas INHERITED;
254 }; 256 };
255 257
256 258
257 #endif 259 #endif
OLDNEW
« no previous file with comments | « include/core/SkRSXform.h ('k') | samplecode/SampleAtlas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698