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

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

Issue 1234873005: Rename right & bottom crop edges to width & height. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Update to ToT; fix tests Created 5 years, 5 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/SkImageFilter.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 2011 Google Inc. 2 * Copyright 2011 Google Inc.
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 SkImageFilter_DEFINED 8 #ifndef SkImageFilter_DEFINED
9 #define SkImageFilter_DEFINED 9 #define SkImageFilter_DEFINED
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 SkMatrix fCTM; 57 SkMatrix fCTM;
58 SkIRect fClipBounds; 58 SkIRect fClipBounds;
59 Cache* fCache; 59 Cache* fCache;
60 }; 60 };
61 61
62 class CropRect { 62 class CropRect {
63 public: 63 public:
64 enum CropEdge { 64 enum CropEdge {
65 kHasLeft_CropEdge = 0x01, 65 kHasLeft_CropEdge = 0x01,
66 kHasTop_CropEdge = 0x02, 66 kHasTop_CropEdge = 0x02,
67 kHasRight_CropEdge = 0x04, 67 kHasWidth_CropEdge = 0x04,
68 kHasBottom_CropEdge = 0x08, 68 kHasHeight_CropEdge = 0x08,
69 #ifdef SK_LEGACY_IMAGE_FILTER_CROP_RECT_EDGES
70 kHasRight_CropEdge = kHasWidth_CropEdge,
71 kHasBottom_CropEdge = kHasHeight_CropEdge,
72 #endif
69 kHasAll_CropEdge = 0x0F, 73 kHasAll_CropEdge = 0x0F,
70 }; 74 };
71 CropRect() {} 75 CropRect() {}
72 explicit CropRect(const SkRect& rect, uint32_t flags = kHasAll_CropEdge) 76 explicit CropRect(const SkRect& rect, uint32_t flags = kHasAll_CropEdge)
73 : fRect(rect), fFlags(flags) {} 77 : fRect(rect), fFlags(flags) {}
74 uint32_t flags() const { return fFlags; } 78 uint32_t flags() const { return fFlags; }
75 const SkRect& rect() const { return fRect; } 79 const SkRect& rect() const { return fRect; }
76 #ifndef SK_IGNORE_TO_STRING 80 #ifndef SK_IGNORE_TO_STRING
77 void toString(SkString* str) const; 81 void toString(SkString* str) const;
78 #endif 82 #endif
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 */ 385 */
382 #define SK_IMAGEFILTER_UNFLATTEN_COMMON(localVar, expectedCount) \ 386 #define SK_IMAGEFILTER_UNFLATTEN_COMMON(localVar, expectedCount) \
383 Common localVar; \ 387 Common localVar; \
384 do { \ 388 do { \
385 if (!localVar.unflatten(buffer, expectedCount)) { \ 389 if (!localVar.unflatten(buffer, expectedCount)) { \
386 return NULL; \ 390 return NULL; \
387 } \ 391 } \
388 } while (0) 392 } while (0)
389 393
390 #endif 394 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698