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

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

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Adapting code to sk_once changes Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkColorFilter.h ('k') | include/core/SkFlattenable.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 /* 2 /*
3 * Copyright 2011 The Android Open Source Project 3 * Copyright 2011 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkDrawLooper_DEFINED 10 #ifndef SkDrawLooper_DEFINED
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 * is expected to have the following behavior. Given the parent paint and 57 * is expected to have the following behavior. Given the parent paint and
58 * the parent's bounding rect the subclass must fill in and return the 58 * the parent's bounding rect the subclass must fill in and return the
59 * storage rect, where the storage rect is with the union of the src rect 59 * storage rect, where the storage rect is with the union of the src rect
60 * and the looper's bounding rect. 60 * and the looper's bounding rect.
61 */ 61 */
62 virtual bool canComputeFastBounds(const SkPaint& paint); 62 virtual bool canComputeFastBounds(const SkPaint& paint);
63 virtual void computeFastBounds(const SkPaint& paint, 63 virtual void computeFastBounds(const SkPaint& paint,
64 const SkRect& src, SkRect* dst); 64 const SkRect& src, SkRect* dst);
65 65
66 SkDEVCODE(virtual void toString(SkString* str) const = 0;) 66 SkDEVCODE(virtual void toString(SkString* str) const = 0;)
67 SK_DEFINE_FLATTENABLE_TYPE(SkDrawLooper)
67 68
68 protected: 69 protected:
69 SkDrawLooper() {} 70 SkDrawLooper() {}
70 SkDrawLooper(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} 71 SkDrawLooper(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {}
71 72
72 private: 73 private:
73 typedef SkFlattenable INHERITED; 74 typedef SkFlattenable INHERITED;
74 }; 75 };
75 76
76 #endif 77 #endif
OLDNEW
« no previous file with comments | « include/core/SkColorFilter.h ('k') | include/core/SkFlattenable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698