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

Unified Diff: include/core/SkCanvas.h

Issue 1181913003: add SkCanvas::drawAtlas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: include/core/SkCanvas.h
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 8a71f1d0bbe9827f6eeae21aee322e59c8e65808..ad8890dcb063d9fdfd361bf42b6157db7235503d 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -28,6 +28,7 @@ class SkImage;
class SkMetaData;
class SkPicture;
class SkRRect;
+struct SkRSXform;
class SkSurface;
class SkSurface_Base;
class SkTextBlob;
@@ -1024,6 +1025,12 @@ public:
const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint);
/**
+ * colors, cullRect and paint are all optional.
+ */
+ void drawAtlas(const SkImage* atlas, const SkRSXform[], const SkRect tex[], const SkColor[],
bsalomon 2015/06/15 15:44:15 What does SkRSXform apply to? A standard rectangle
reed1 2015/06/15 18:52:33 added to dox: xform maps [0, 0, tex.width, tex.he
+ int count, const SkRect* cullRect, const SkPaint* paint);
+
+ /**
* Draw the contents of this drawable into the canvas. If the canvas is async
* (e.g. it is recording into a picture) then the drawable will be referenced instead,
* to have its draw() method called when the picture is finalized.
« no previous file with comments | « gyp/SampleApp.gyp ('k') | include/core/SkMatrix.h » ('j') | samplecode/SampleAtlas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698