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

Side by Side Diff: include/effects/SkLayerDrawLooper.h

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: New serialization method Created 7 years, 3 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
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 SkLayerDrawLooper_DEFINED 8 #ifndef SkLayerDrawLooper_DEFINED
9 #define SkLayerDrawLooper_DEFINED 9 #define SkLayerDrawLooper_DEFINED
10 10
11 #include "SkDrawLooper.h" 11 #include "SkDrawLooper.h"
12 #include "SkPaint.h" 12 #include "SkPaint.h"
13 #include "SkPoint.h" 13 #include "SkPoint.h"
14 #include "SkXfermode.h" 14 #include "SkXfermode.h"
15 15
16 class SK_API SkLayerDrawLooper : public SkDrawLooper { 16 class SK_API SkLayerDrawLooper : public SkDrawLooper {
17 typedef SkDrawLooper INHERITED;
18
17 public: 19 public:
18 SK_DECLARE_INST_COUNT(SkLayerDrawLooper) 20 SK_DECLARE_INST_COUNT(SkLayerDrawLooper)
19 21
20 SkLayerDrawLooper(); 22 SkLayerDrawLooper();
21 virtual ~SkLayerDrawLooper(); 23 virtual ~SkLayerDrawLooper();
22 24
23 /** 25 /**
24 * Bits specifies which aspects of the layer's paint should replace the 26 * Bits specifies which aspects of the layer's paint should replace the
25 * corresponding aspects on the draw's paint. 27 * corresponding aspects on the draw's paint.
26 * kEntirePaint_Bits means use the layer's paint completely. 28 * kEntirePaint_Bits means use the layer's paint completely.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 127
126 // state-machine during the init/next cycle 128 // state-machine during the init/next cycle
127 Rec* fCurrRec; 129 Rec* fCurrRec;
128 130
129 static void ApplyInfo(SkPaint* dst, const SkPaint& src, const LayerInfo&); 131 static void ApplyInfo(SkPaint* dst, const SkPaint& src, const LayerInfo&);
130 132
131 class MyRegistrar : public SkFlattenable::Registrar { 133 class MyRegistrar : public SkFlattenable::Registrar {
132 public: 134 public:
133 MyRegistrar(); 135 MyRegistrar();
134 }; 136 };
135
136 typedef SkDrawLooper INHERITED;
137 }; 137 };
138 138
139 #endif 139 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698