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

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

Issue 789033002: Remove SkCanvas::drawBitmapMatrix() (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: non-const canvas ptr Created 6 years 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 | « gyp/gmslides.gypi ('k') | include/utils/SkDeferredCanvas.h » ('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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 DrawBitmapRectFlags flags = kNone_DrawBitmapRectFlag) { 875 DrawBitmapRectFlags flags = kNone_DrawBitmapRectFlag) {
876 SkRect realSrcStorage; 876 SkRect realSrcStorage;
877 SkRect* realSrcPtr = NULL; 877 SkRect* realSrcPtr = NULL;
878 if (isrc) { 878 if (isrc) {
879 realSrcStorage.set(*isrc); 879 realSrcStorage.set(*isrc);
880 realSrcPtr = &realSrcStorage; 880 realSrcPtr = &realSrcStorage;
881 } 881 }
882 this->drawBitmapRectToRect(bitmap, realSrcPtr, dst, paint, flags); 882 this->drawBitmapRectToRect(bitmap, realSrcPtr, dst, paint, flags);
883 } 883 }
884 884
885 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
886 const SkPaint* paint = NULL);
887
888 /** 885 /**
889 * Draw the bitmap stretched differentially to fit into dst. 886 * Draw the bitmap stretched differentially to fit into dst.
890 * center is a rect within the bitmap, and logically divides the bitmap 887 * center is a rect within the bitmap, and logically divides the bitmap
891 * into 9 sections (3x3). For example, if the middle pixel of a [5x5] 888 * into 9 sections (3x3). For example, if the middle pixel of a [5x5]
892 * bitmap is the "center", then the center-rect should be [2, 2, 3, 3]. 889 * bitmap is the "center", then the center-rect should be [2, 2, 3, 3].
893 * 890 *
894 * If the dst is >= the bitmap size, then... 891 * If the dst is >= the bitmap size, then...
895 * - The 4 corners are not stretched at all. 892 * - The 4 corners are not stretched at all.
896 * - The sides are stretched in only one axis. 893 * - The sides are stretched in only one axis.
897 * - The center is stretched in both axes. 894 * - The center is stretched in both axes.
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 1536
1540 class SkCanvasClipVisitor { 1537 class SkCanvasClipVisitor {
1541 public: 1538 public:
1542 virtual ~SkCanvasClipVisitor(); 1539 virtual ~SkCanvasClipVisitor();
1543 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1540 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1544 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1541 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1545 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1542 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1546 }; 1543 };
1547 1544
1548 #endif 1545 #endif
OLDNEW
« no previous file with comments | « gyp/gmslides.gypi ('k') | include/utils/SkDeferredCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698