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

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

Issue 1903483002: Delete unused fNamedFactorySet from SkWriteBuffer (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
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 #include "SkPictureFlat.h" 7 #include "SkPictureFlat.h"
8 8
9 #include "SkChecksum.h" 9 #include "SkChecksum.h"
10 #include "SkColorFilter.h" 10 #include "SkColorFilter.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 SkRefCnt_SafeAssign(fArray[index], obj); 56 SkRefCnt_SafeAssign(fArray[index], obj);
57 return obj; 57 return obj;
58 } 58 }
59 59
60 /////////////////////////////////////////////////////////////////////////////// 60 ///////////////////////////////////////////////////////////////////////////////
61 61
62 SkFlatController::SkFlatController(uint32_t writeBufferFlags) 62 SkFlatController::SkFlatController(uint32_t writeBufferFlags)
63 : fBitmapHeap(nullptr) 63 : fBitmapHeap(nullptr)
64 , fTypefaceSet(nullptr) 64 , fTypefaceSet(nullptr)
65 , fTypefacePlayback(nullptr) 65 , fTypefacePlayback(nullptr)
66 , fFactorySet(nullptr)
67 , fWriteBufferFlags(writeBufferFlags) {} 66 , fWriteBufferFlags(writeBufferFlags) {}
68 67
69 SkFlatController::~SkFlatController() { 68 SkFlatController::~SkFlatController() {
70 SkSafeUnref(fBitmapHeap); 69 SkSafeUnref(fBitmapHeap);
71 SkSafeUnref(fTypefaceSet); 70 SkSafeUnref(fTypefaceSet);
72 SkSafeUnref(fFactorySet);
73 } 71 }
74 72
75 void SkFlatController::setBitmapHeap(SkBitmapHeap* heap) { 73 void SkFlatController::setBitmapHeap(SkBitmapHeap* heap) {
76 SkRefCnt_SafeAssign(fBitmapHeap, heap); 74 SkRefCnt_SafeAssign(fBitmapHeap, heap);
77 } 75 }
78 76
79 void SkFlatController::setTypefaceSet(SkRefCntSet *set) { 77 void SkFlatController::setTypefaceSet(SkRefCntSet *set) {
80 SkRefCnt_SafeAssign(fTypefaceSet, set); 78 SkRefCnt_SafeAssign(fTypefaceSet, set);
81 } 79 }
82 80
83 void SkFlatController::setTypefacePlayback(SkTypefacePlayback* playback) { 81 void SkFlatController::setTypefacePlayback(SkTypefacePlayback* playback) {
84 fTypefacePlayback = playback; 82 fTypefacePlayback = playback;
85 } 83 }
86
87 SkNamedFactorySet* SkFlatController::setNamedFactorySet(SkNamedFactorySet* set) {
88 SkRefCnt_SafeAssign(fFactorySet, set);
89 return set;
90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698