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

Side by Side 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, 7 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 | « src/ports/SkGlobalInitialization_default.cpp ('k') | no next file » | 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 /* 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 #include "SkDeferredCanvas.h" 9 #include "SkDeferredCanvas.h"
10 10
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 1008
1009 void SkDeferredCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[] , 1009 void SkDeferredCanvas::onDrawAtlas(const SkImage* atlas, const SkRSXform xform[] ,
1010 const SkRect tex[], const SkColor colors[], i nt count, 1010 const SkRect tex[], const SkColor colors[], i nt count,
1011 SkXfermode::Mode mode, const SkRect* cullRect , 1011 SkXfermode::Mode mode, const SkRect* cullRect ,
1012 const SkPaint* paint) { 1012 const SkPaint* paint) {
1013 AutoImmediateDrawIfNeeded autoDraw(*this, paint); 1013 AutoImmediateDrawIfNeeded autoDraw(*this, paint);
1014 this->drawingCanvas()->drawAtlas(atlas, xform, tex, colors, count, mode, cul lRect, paint); 1014 this->drawingCanvas()->drawAtlas(atlas, xform, tex, colors, count, mode, cul lRect, paint);
1015 this->recordedDrawCommand(); 1015 this->recordedDrawCommand();
1016 } 1016 }
1017 1017
1018 void SkDeferredCanvas::onDrawLitAtlas(const SkImage* atlas, const SkRSXform xfor m[],
1019 const SkRect diffTex[], const SkRect normTex[ ],
1020 const SkColor colors[], int count,
1021 SkXfermode::Mode mode, const SkRect* cullRect ,
1022 const SkPaint* paint, const SkLight lights[], int numLights) {
1023 AutoImmediateDrawIfNeeded autoDraw(*this, paint);
1024 this->drawingCanvas()->drawLitAtlas(atlas, xform, diffTex, normTex, colors, count, mode,
1025 cullRect, paint, lights, numLights);
1026 this->recordedDrawCommand();
1027 }
1028
1018 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 1029 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
1019 this->drawingCanvas()->setDrawFilter(filter); 1030 this->drawingCanvas()->setDrawFilter(filter);
1020 this->INHERITED::setDrawFilter(filter); 1031 this->INHERITED::setDrawFilter(filter);
1021 this->recordedDrawCommand(); 1032 this->recordedDrawCommand();
1022 return filter; 1033 return filter;
1023 } 1034 }
1024 1035
1025 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 1036 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
1026 return this->drawingCanvas(); 1037 return this->drawingCanvas();
1027 } 1038 }
OLDNEW
« 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