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

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

Issue 721903002: Cleanup public includes directory. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: &^%%$# Created 6 years, 1 month 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 | « platform_tools/android/app/jni/com_skia_SkiaSampleRenderer.cpp ('k') | src/gpu/GrFontScaler.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 8
9 #include "SkWriteBuffer.h" 9 #include "SkWriteBuffer.h"
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
11 #include "SkBitmapHeap.h"
11 #include "SkData.h" 12 #include "SkData.h"
12 #include "SkPixelRef.h" 13 #include "SkPixelRef.h"
13 #include "SkPtrRecorder.h" 14 #include "SkPtrRecorder.h"
14 #include "SkStream.h" 15 #include "SkStream.h"
15 #include "SkTypeface.h" 16 #include "SkTypeface.h"
16 17
17 SkWriteBuffer::SkWriteBuffer(uint32_t flags) 18 SkWriteBuffer::SkWriteBuffer(uint32_t flags)
18 : fFlags(flags) 19 : fFlags(flags)
19 , fFactorySet(NULL) 20 , fFactorySet(NULL)
20 , fNamedFactorySet(NULL) 21 , fNamedFactorySet(NULL)
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 // make room for the size of the flattened object 313 // make room for the size of the flattened object
313 (void)fWriter.reserve(sizeof(uint32_t)); 314 (void)fWriter.reserve(sizeof(uint32_t));
314 // record the current size, so we can subtract after the object writes. 315 // record the current size, so we can subtract after the object writes.
315 size_t offset = fWriter.bytesWritten(); 316 size_t offset = fWriter.bytesWritten();
316 // now flatten the object 317 // now flatten the object
317 flattenable->flatten(*this); 318 flattenable->flatten(*this);
318 size_t objSize = fWriter.bytesWritten() - offset; 319 size_t objSize = fWriter.bytesWritten() - offset;
319 // record the obj's size 320 // record the obj's size
320 fWriter.overwriteTAt(offset - sizeof(uint32_t), SkToU32(objSize)); 321 fWriter.overwriteTAt(offset - sizeof(uint32_t), SkToU32(objSize));
321 } 322 }
OLDNEW
« no previous file with comments | « platform_tools/android/app/jni/com_skia_SkiaSampleRenderer.cpp ('k') | src/gpu/GrFontScaler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698