| OLD | NEW |
| 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 #include "SkPictureRecord.h" | 8 #include "SkPictureRecord.h" |
| 9 #include "SkDevice.h" | 9 #include "SkDevice.h" |
| 10 #include "SkImage_Base.h" | 10 #include "SkImage_Base.h" |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 | 968 |
| 969 void SkPictureRecord::addTextBlob(const SkTextBlob *blob) { | 969 void SkPictureRecord::addTextBlob(const SkTextBlob *blob) { |
| 970 int index = fTextBlobRefs.count(); | 970 int index = fTextBlobRefs.count(); |
| 971 *fTextBlobRefs.append() = blob; | 971 *fTextBlobRefs.append() = blob; |
| 972 blob->ref(); | 972 blob->ref(); |
| 973 // follow the convention of recording a 1-based index | 973 // follow the convention of recording a 1-based index |
| 974 this->addInt(index + 1); | 974 this->addInt(index + 1); |
| 975 } | 975 } |
| 976 | 976 |
| 977 /////////////////////////////////////////////////////////////////////////////// | 977 /////////////////////////////////////////////////////////////////////////////// |
| 978 | |
| OLD | NEW |