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

Unified Diff: src/utils/SkDeferredCanvas.cpp

Issue 1261433009: Refugee from Dead Machine 11: Add SkCanvas::drawLitAtlas call Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 years, 8 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
« no previous file with comments | « src/ports/SkGlobalInitialization_default.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkDeferredCanvas.cpp
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp
index 6ccfb5e4b3c6711fe402e1726c697de949f512fb..ec649d42cf7422b9d397fbddd13c2a4f88935169 100644
--- a/src/utils/SkDeferredCanvas.cpp
+++ b/src/utils/SkDeferredCanvas.cpp
@@ -1015,6 +1015,17 @@ void SkDeferredCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[]
this->recordedDrawCommand();
}
+void SkDeferredCanvas::onDrawLitAtlas(const SkImage* atlas, const SkRSXform xform[],
+ const SkRect diffTex[], const SkRect normTex[],
+ const SkColor colors[], int count,
+ SkXfermode::Mode mode, const SkRect* cullRect,
+ const SkPaint* paint, const SkLight lights[], int numLights) {
+ AutoImmediateDrawIfNeeded autoDraw(*this, paint);
+ this->drawingCanvas()->drawLitAtlas(atlas, xform, diffTex, normTex, colors, count, mode,
+ cullRect, paint, lights, numLights);
+ this->recordedDrawCommand();
+}
+
SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
this->drawingCanvas()->setDrawFilter(filter);
this->INHERITED::setDrawFilter(filter);
« no previous file with comments | « src/ports/SkGlobalInitialization_default.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698