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

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

Issue 29143005: Constify SkFlattenable::getFactory(). (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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/effects/SkDashPathEffect.h ('k') | src/core/SkOrderedWriteBuffer.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 2012 Google Inc. 3 * Copyright 2012 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 "SkFlattenableBuffers.h" 8 #include "SkFlattenableBuffers.h"
9 #include "SkPaint.h" 9 #include "SkPaint.h"
10 #include "SkTypeface.h" 10 #include "SkTypeface.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 void SkFlattenableWriteBuffer::writeFunctionPtr(void* ptr) { 45 void SkFlattenableWriteBuffer::writeFunctionPtr(void* ptr) {
46 void* ptrStorage[] = { ptr }; 46 void* ptrStorage[] = { ptr };
47 this->writeByteArray(ptrStorage, sizeof(void*)); 47 this->writeByteArray(ptrStorage, sizeof(void*));
48 } 48 }
49 49
50 void SkFlattenableWriteBuffer::writePaint(const SkPaint& paint) { 50 void SkFlattenableWriteBuffer::writePaint(const SkPaint& paint) {
51 paint.flatten(*this); 51 paint.flatten(*this);
52 } 52 }
53 53
54 void SkFlattenableWriteBuffer::flattenObject(SkFlattenable* obj, SkFlattenableWr iteBuffer& buffer) { 54 void SkFlattenableWriteBuffer::flattenObject(const SkFlattenable* obj,
55 SkFlattenableWriteBuffer& buffer) {
55 obj->flatten(buffer); 56 obj->flatten(buffer);
56 } 57 }
OLDNEW
« no previous file with comments | « include/effects/SkDashPathEffect.h ('k') | src/core/SkOrderedWriteBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698