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

Side by Side Diff: src/animator/SkDisplayInclude.cpp

Issue 1309523003: Remove SK_OFFSETOF from SkTypes, clean up offsetof usage. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Speling Created 5 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
« no previous file with comments | « include/svg/parser/SkSVGAttribute.h ('k') | src/animator/SkMemberInfo.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 2006 The Android Open Source Project 3 * Copyright 2006 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 #include "SkDisplayInclude.h" 10 #include "SkDisplayInclude.h"
11 #include "SkAnimateMaker.h" 11 #include "SkAnimateMaker.h"
12 #include "SkAnimator.h" 12 #include "SkAnimator.h"
13 13
14 #if 0
15 #undef SK_MEMBER
16 #define SK_MEMBER(_member, _type) \
17 { #_member, SK_OFFSETOF(BASE_CLASS::_A, _member), SkType_##_type, \
18 sizeof(((BASE_CLASS::_A*) 0)->_member) / sizeof(SkScalar) }
19 #endif
20
21 #if SK_USE_CONDENSED_INFO == 0 14 #if SK_USE_CONDENSED_INFO == 0
22 15
23 const SkMemberInfo SkInclude::fInfo[] = { 16 const SkMemberInfo SkInclude::fInfo[] = {
24 SK_MEMBER(src, String) 17 SK_MEMBER(src, String)
25 }; 18 };
26 19
27 #endif 20 #endif
28 21
29 DEFINE_GET_MEMBER(SkInclude); 22 DEFINE_GET_MEMBER(SkInclude);
30 23
(...skipping 19 matching lines...) Expand all
50 if (maker.getErrorCode() != SkXMLParserError::kNoError || maker.getNativ eCode() != -1) { 43 if (maker.getErrorCode() != SkXMLParserError::kNoError || maker.getNativ eCode() != -1) {
51 maker.setInnerError(&maker, src); 44 maker.setInnerError(&maker, src);
52 maker.setErrorCode(SkDisplayXMLParserError::kInInclude); 45 maker.setErrorCode(SkDisplayXMLParserError::kInInclude);
53 } else { 46 } else {
54 maker.setErrorNoun(src); 47 maker.setErrorNoun(src);
55 maker.setErrorCode(SkDisplayXMLParserError::kIncludeNameUnknownOrMis sing); 48 maker.setErrorCode(SkDisplayXMLParserError::kIncludeNameUnknownOrMis sing);
56 } 49 }
57 } 50 }
58 maker.fInInclude = false; 51 maker.fInInclude = false;
59 } 52 }
OLDNEW
« no previous file with comments | « include/svg/parser/SkSVGAttribute.h ('k') | src/animator/SkMemberInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698