xref: /aosp_15_r20/external/skia/src/core/SkPictureFlat.cpp (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 /*
2  * Copyright 2011 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #include "src/core/SkPictureFlat.h"
9 
10 #include "include/core/SkTypeface.h"
11 
12 #include <memory>
13 
14 ///////////////////////////////////////////////////////////////////////////////
15 
setCount(size_t count)16 void SkTypefacePlayback::setCount(size_t count) {
17     fCount = count;
18     fArray = std::make_unique<sk_sp<SkTypeface>[]>(count);
19 }
20