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

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

Issue 920513003: Make filters use SkImage instead of SkBitmap Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « gyp/effects.gyp ('k') | include/core/SkDevice.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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 768
769 /** Draw the specified image, with its top/left corner at (x,y), using the 769 /** Draw the specified image, with its top/left corner at (x,y), using the
770 specified paint, transformed by the current matrix. 770 specified paint, transformed by the current matrix.
771 771
772 @param image The image to be drawn 772 @param image The image to be drawn
773 @param left The position of the left side of the image being drawn 773 @param left The position of the left side of the image being drawn
774 @param top The position of the top side of the image being drawn 774 @param top The position of the top side of the image being drawn
775 @param paint The paint used to draw the image, or NULL 775 @param paint The paint used to draw the image, or NULL
776 */ 776 */
777 void drawImage(const SkImage* image, SkScalar left, SkScalar top, const SkPa int* paint = NULL); 777 void drawImage(const SkImage* image, SkScalar left, SkScalar top, const SkPa int* paint = NULL);
778
778 /** Draw the specified image, with the specified matrix applied (before the 779 /** Draw the specified image, with the specified matrix applied (before the
779 canvas' matrix is applied). 780 canvas' matrix is applied).
780 781
781 @param image The image to be drawn 782 @param image The image to be drawn
782 @param src Optional: specify the subset of the image to be drawn 783 @param src Optional: specify the subset of the image to be drawn
783 @param dst The destination rectangle where the scaled/translated 784 @param dst The destination rectangle where the scaled/translated
784 image will be drawn 785 image will be drawn
785 @param paint The paint used to draw the image, or NULL 786 @param paint The paint used to draw the image, or NULL
786 */ 787 */
787 void drawImageRect(const SkImage* image, const SkRect* src, const SkRect& ds t, 788 void drawImageRect(const SkImage* image, const SkRect* src, const SkRect& ds t,
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 1495
1495 class SkCanvasClipVisitor { 1496 class SkCanvasClipVisitor {
1496 public: 1497 public:
1497 virtual ~SkCanvasClipVisitor(); 1498 virtual ~SkCanvasClipVisitor();
1498 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1499 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1499 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1500 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1500 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1501 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1501 }; 1502 };
1502 1503
1503 #endif 1504 #endif
OLDNEW
« no previous file with comments | « gyp/effects.gyp ('k') | include/core/SkDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698