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

Side by Side Diff: include/core/SkCanvas.h

Issue 1118693003: add heuristic to pour small pictures into recordings, rather than ref'ing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move check into SkCanvas non-virtual Created 5 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 | « no previous file | src/core/SkCanvas.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 @param paint The paint used for the text (e.g. color, size, style) 944 @param paint The paint used for the text (e.g. color, size, style)
945 */ 945 */
946 void drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPa int& paint); 946 void drawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, const SkPa int& paint);
947 947
948 /** Draw the picture into this canvas. This method effective brackets the 948 /** Draw the picture into this canvas. This method effective brackets the
949 playback of the picture's draw calls with save/restore, so the state 949 playback of the picture's draw calls with save/restore, so the state
950 of this canvas will be unchanged after this call. 950 of this canvas will be unchanged after this call.
951 @param picture The recorded drawing commands to playback into this 951 @param picture The recorded drawing commands to playback into this
952 canvas. 952 canvas.
953 */ 953 */
954 void drawPicture(const SkPicture* picture); 954 void drawPicture(const SkPicture* picture) {
955 this->drawPicture(picture, NULL, NULL);
956 }
955 957
956 /** 958 /**
957 * Draw the picture into this canvas. 959 * Draw the picture into this canvas.
958 * 960 *
959 * If matrix is non-null, apply that matrix to the CTM when drawing this pi cture. This is 961 * If matrix is non-null, apply that matrix to the CTM when drawing this pi cture. This is
960 * logically equivalent to 962 * logically equivalent to
961 * save/concat/drawPicture/restore 963 * save/concat/drawPicture/restore
962 * 964 *
963 * If paint is non-null, draw the picture into a temporary buffer, and then apply the paint's 965 * If paint is non-null, draw the picture into a temporary buffer, and then apply the paint's
964 * alpha/colorfilter/imagefilter/xfermode to that buffer as it is drawn to the canvas. 966 * alpha/colorfilter/imagefilter/xfermode to that buffer as it is drawn to the canvas.
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 1500
1499 class SkCanvasClipVisitor { 1501 class SkCanvasClipVisitor {
1500 public: 1502 public:
1501 virtual ~SkCanvasClipVisitor(); 1503 virtual ~SkCanvasClipVisitor();
1502 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1504 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1503 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1505 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1504 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1506 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1505 }; 1507 };
1506 1508
1507 #endif 1509 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698