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

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

Issue 2261573002: Fix initialization bug for fConservativeIsScaleTranslate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 /** 1609 /**
1610 * Returns true if the paint's imagefilter can be invoked directly, without needed a layer. 1610 * Returns true if the paint's imagefilter can be invoked directly, without needed a layer.
1611 */ 1611 */
1612 bool canDrawBitmapAsSprite(SkScalar x, SkScalar y, int w, int h, const SkPai nt&); 1612 bool canDrawBitmapAsSprite(SkScalar x, SkScalar y, int w, int h, const SkPai nt&);
1613 1613
1614 1614
1615 /** 1615 /**
1616 * Keep track of the device clip bounds and if the matrix is scale-translat e. This allows 1616 * Keep track of the device clip bounds and if the matrix is scale-translat e. This allows
1617 * us to do a fast quick reject in the common case. 1617 * us to do a fast quick reject in the common case.
1618 */ 1618 */
1619 bool fConservativeIsScaleTranslate; 1619 bool fIsScaleTranslate;
1620 SkRect fDeviceClipBounds; 1620 SkRect fDeviceClipBounds;
1621 1621
1622 bool fAllowSoftClip; 1622 bool fAllowSoftClip;
1623 bool fAllowSimplifyClip; 1623 bool fAllowSimplifyClip;
1624 const bool fConservativeRasterClip; 1624 const bool fConservativeRasterClip;
1625 1625
1626 class AutoValidateClip : ::SkNoncopyable { 1626 class AutoValidateClip : ::SkNoncopyable {
1627 public: 1627 public:
1628 explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) { 1628 explicit AutoValidateClip(SkCanvas* canvas) : fCanvas(canvas) {
1629 fCanvas->validateClip(); 1629 fCanvas->validateClip();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 1682
1683 class SkCanvasClipVisitor { 1683 class SkCanvasClipVisitor {
1684 public: 1684 public:
1685 virtual ~SkCanvasClipVisitor(); 1685 virtual ~SkCanvasClipVisitor();
1686 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1686 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1687 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1687 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1688 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1688 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1689 }; 1689 };
1690 1690
1691 #endif 1691 #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