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

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

Issue 1521673002: In SkPixmap.cpp, change SkAlphaMul to SkMulDiv255. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Make uppercase consistent. Created 5 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 | « no previous file | src/core/SkPixmap.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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 * in the current clip with this color. 606 * in the current clip with this color.
607 */ 607 */
608 void clear(SkColor color) { 608 void clear(SkColor color) {
609 this->drawColor(color, SkXfermode::kSrc_Mode); 609 this->drawColor(color, SkXfermode::kSrc_Mode);
610 } 610 }
611 611
612 /** 612 /**
613 * This makes the contents of the canvas undefined. Subsequent calls that 613 * This makes the contents of the canvas undefined. Subsequent calls that
614 * require reading the canvas contents will produce undefined results. Examp les 614 * require reading the canvas contents will produce undefined results. Examp les
615 * include blending and readPixels. The actual implementation is backend- 615 * include blending and readPixels. The actual implementation is backend-
616 * dependent and one legal implementation is to do nothing. Like clear(), th is 616 * dependent and one legal implementation is to do nothing. This method
617 * ignores the clip. 617 * ignores the current clip.
618 * 618 *
619 * This function should only be called if the caller intends to subsequently 619 * This function should only be called if the caller intends to subsequently
620 * draw to the canvas. The canvas may do real work at discard() time in orde r 620 * draw to the canvas. The canvas may do real work at discard() time in orde r
621 * to optimize performance on subsequent draws. Thus, if you call this and t hen 621 * to optimize performance on subsequent draws. Thus, if you call this and t hen
622 * never draw to the canvas subsequently you may pay a perfomance penalty. 622 * never draw to the canvas subsequently you may pay a perfomance penalty.
623 */ 623 */
624 void discard() { this->onDiscard(); } 624 void discard() { this->onDiscard(); }
625 625
626 /** 626 /**
627 * Fill the entire canvas' bitmap (restricted to the current clip) with the 627 * Fill the entire canvas (restricted to the current clip) with the
628 * specified paint. 628 * specified paint.
629 * @param paint The paint used to fill the canvas 629 * @param paint The paint used to fill the canvas
630 */ 630 */
631 void drawPaint(const SkPaint& paint); 631 void drawPaint(const SkPaint& paint);
632 632
633 enum PointMode { 633 enum PointMode {
634 /** drawPoints draws each point separately */ 634 /** drawPoints draws each point separately */
635 kPoints_PointMode, 635 kPoints_PointMode,
636 /** drawPoints draws each pair of points as a line segment */ 636 /** drawPoints draws each pair of points as a line segment */
637 kLines_PointMode, 637 kLines_PointMode,
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 1577
1578 class SkCanvasClipVisitor { 1578 class SkCanvasClipVisitor {
1579 public: 1579 public:
1580 virtual ~SkCanvasClipVisitor(); 1580 virtual ~SkCanvasClipVisitor();
1581 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1581 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1582 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1582 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1583 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1583 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1584 }; 1584 };
1585 1585
1586 #endif 1586 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkPixmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698