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

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

Issue 1904673003: Rein in the use of SkDevice.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « src/core/SkImageFilter.cpp ('k') | tests/ImageTest.cpp » ('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 * 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"
10 #include "SkImage_Base.h" 9 #include "SkImage_Base.h"
11 #include "SkPatchUtils.h" 10 #include "SkPatchUtils.h"
12 #include "SkPixelRef.h" 11 #include "SkPixelRef.h"
13 #include "SkRRect.h" 12 #include "SkRRect.h"
14 #include "SkRSXform.h" 13 #include "SkRSXform.h"
15 #include "SkTextBlob.h" 14 #include "SkTextBlob.h"
16 #include "SkTSearch.h" 15 #include "SkTSearch.h"
17 16
18 #define HEAP_BLOCK_SIZE 4096 17 #define HEAP_BLOCK_SIZE 4096
19 18
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 967
969 void SkPictureRecord::addTextBlob(const SkTextBlob *blob) { 968 void SkPictureRecord::addTextBlob(const SkTextBlob *blob) {
970 int index = fTextBlobRefs.count(); 969 int index = fTextBlobRefs.count();
971 *fTextBlobRefs.append() = blob; 970 *fTextBlobRefs.append() = blob;
972 blob->ref(); 971 blob->ref();
973 // follow the convention of recording a 1-based index 972 // follow the convention of recording a 1-based index
974 this->addInt(index + 1); 973 this->addInt(index + 1);
975 } 974 }
976 975
977 /////////////////////////////////////////////////////////////////////////////// 976 ///////////////////////////////////////////////////////////////////////////////
OLDNEW
« no previous file with comments | « src/core/SkImageFilter.cpp ('k') | tests/ImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698