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

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

Issue 1636103002: Remove SK_SUPPORT_LEGACY_SAVEFLAGS define on Android (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | no next file » | 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 19 matching lines...) Expand all
30 class SkMetaData; 30 class SkMetaData;
31 class SkPath; 31 class SkPath;
32 class SkPicture; 32 class SkPicture;
33 class SkPixmap; 33 class SkPixmap;
34 class SkRRect; 34 class SkRRect;
35 struct SkRSXform; 35 struct SkRSXform;
36 class SkSurface; 36 class SkSurface;
37 class SkSurface_Base; 37 class SkSurface_Base;
38 class SkTextBlob; 38 class SkTextBlob;
39 39
40 /*
41 * If you want the legacy cliptolayer flag (i.e. android), then you must have t he new
42 * legacy saveflags.
43 */
44 #ifdef SK_SUPPORT_LEGACY_CLIPTOLAYERFLAG
45 #ifndef SK_SUPPORT_LEGACY_SAVEFLAGS
46 #define SK_SUPPORT_LEGACY_SAVEFLAGS
47 #endif
48 #endif
49
50 /** \class SkCanvas 40 /** \class SkCanvas
51 41
52 A Canvas encapsulates all of the state about drawing into a device (bitmap). 42 A Canvas encapsulates all of the state about drawing into a device (bitmap).
53 This includes a reference to the device itself, and a stack of matrix/clip 43 This includes a reference to the device itself, and a stack of matrix/clip
54 values. For any given draw call (e.g. drawRect), the geometry of the object 44 values. For any given draw call (e.g. drawRect), the geometry of the object
55 being drawn is transformed by the concatenation of all the matrices in the 45 being drawn is transformed by the concatenation of all the matrices in the
56 stack. The transformed geometry is clipped by the intersection of all of 46 stack. The transformed geometry is clipped by the intersection of all of
57 the clips in the stack. 47 the clips in the stack.
58 48
59 While the Canvas holds the state of the drawing device, the state (style) 49 While the Canvas holds the state of the drawing device, the state (style)
(...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 1583
1594 class SkCanvasClipVisitor { 1584 class SkCanvasClipVisitor {
1595 public: 1585 public:
1596 virtual ~SkCanvasClipVisitor(); 1586 virtual ~SkCanvasClipVisitor();
1597 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1587 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1598 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1588 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1599 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1589 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1600 }; 1590 };
1601 1591
1602 #endif 1592 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698