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

Side by Side Diff: src/utils/SkDeferredCanvas.cpp

Issue 499413002: SkTextBlob plumbing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: review comments Created 6 years, 3 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/pipe/SkGPipeWrite.cpp ('k') | src/utils/SkDumpCanvas.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 /* 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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 this->recordedDrawCommand(); 894 this->recordedDrawCommand();
895 } 895 }
896 896
897 void SkDeferredCanvas::onDrawTextOnPath(const void* text, size_t byteLength, con st SkPath& path, 897 void SkDeferredCanvas::onDrawTextOnPath(const void* text, size_t byteLength, con st SkPath& path,
898 const SkMatrix* matrix, const SkPaint& p aint) { 898 const SkMatrix* matrix, const SkPaint& p aint) {
899 AutoImmediateDrawIfNeeded autoDraw(*this, &paint); 899 AutoImmediateDrawIfNeeded autoDraw(*this, &paint);
900 this->drawingCanvas()->drawTextOnPath(text, byteLength, path, matrix, paint) ; 900 this->drawingCanvas()->drawTextOnPath(text, byteLength, path, matrix, paint) ;
901 this->recordedDrawCommand(); 901 this->recordedDrawCommand();
902 } 902 }
903 903
904 void SkDeferredCanvas::onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScal ar y,
905 const SkPaint& paint) {
906 AutoImmediateDrawIfNeeded autoDraw(*this, &paint);
907 this->drawingCanvas()->drawTextBlob(blob, x, y, paint);
908 this->recordedDrawCommand();
909 }
910
904 void SkDeferredCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* m atrix, 911 void SkDeferredCanvas::onDrawPicture(const SkPicture* picture, const SkMatrix* m atrix,
905 const SkPaint* paint) { 912 const SkPaint* paint) {
906 this->drawingCanvas()->drawPicture(picture, matrix, paint); 913 this->drawingCanvas()->drawPicture(picture, matrix, paint);
907 this->recordedDrawCommand(); 914 this->recordedDrawCommand();
908 } 915 }
909 916
910 void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount, 917 void SkDeferredCanvas::drawVertices(VertexMode vmode, int vertexCount,
911 const SkPoint vertices[], 918 const SkPoint vertices[],
912 const SkPoint texs[], 919 const SkPoint texs[],
913 const SkColor colors[], SkXfermode* xmode, 920 const SkColor colors[], SkXfermode* xmode,
(...skipping 16 matching lines...) Expand all
930 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 937 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
931 this->drawingCanvas()->setDrawFilter(filter); 938 this->drawingCanvas()->setDrawFilter(filter);
932 this->INHERITED::setDrawFilter(filter); 939 this->INHERITED::setDrawFilter(filter);
933 this->recordedDrawCommand(); 940 this->recordedDrawCommand();
934 return filter; 941 return filter;
935 } 942 }
936 943
937 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 944 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
938 return this->drawingCanvas(); 945 return this->drawingCanvas();
939 } 946 }
OLDNEW
« no previous file with comments | « src/pipe/SkGPipeWrite.cpp ('k') | src/utils/SkDumpCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698