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

Side by Side Diff: src/core/SkFlattenable.cpp

Issue 134163010: Refactor read and write buffers. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: original write flags were fine Created 6 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
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 #include "SkFlattenable.h" 8 #include "SkFlattenable.h"
9 #include "SkPtrRecorder.h" 9 #include "SkPtrRecorder.h"
10 10
11 /////////////////////////////////////////////////////////////////////////////// 11 ///////////////////////////////////////////////////////////////////////////////
12 12
13 void SkFlattenable::flatten(SkFlattenableWriteBuffer&) const 13 void SkFlattenable::flatten(SkWriteBuffer&) const
14 { 14 {
15 /* we don't write anything at the moment, but this allows our subclasses 15 /* we don't write anything at the moment, but this allows our subclasses
16 to not know that, since we want them to always call INHERITED::flatten() 16 to not know that, since we want them to always call INHERITED::flatten()
17 in their code. 17 in their code.
18 */ 18 */
19 } 19 }
20 20
21 /////////////////////////////////////////////////////////////////////////////// 21 ///////////////////////////////////////////////////////////////////////////////
22 22
23 SkNamedFactorySet::SkNamedFactorySet() : fNextAddedFactory(0) {} 23 SkNamedFactorySet::SkNamedFactorySet() : fNextAddedFactory(0) {}
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 report_no_entries(__FUNCTION__); 136 report_no_entries(__FUNCTION__);
137 #endif 137 #endif
138 const Entry* entries = gEntries; 138 const Entry* entries = gEntries;
139 for (int i = gCount - 1; i >= 0; --i) { 139 for (int i = gCount - 1; i >= 0; --i) {
140 if (entries[i].fFactory == fact) { 140 if (entries[i].fFactory == fact) {
141 return entries[i].fName; 141 return entries[i].fName;
142 } 142 }
143 } 143 }
144 return NULL; 144 return NULL;
145 } 145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698