Line data Source code
1 : /*
2 : * Copyright 2015 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 "SkPathPriv.h"
9 : #include "SkRecords.h"
10 :
11 : namespace SkRecords {
12 0 : PreCachedPath::PreCachedPath(const SkPath& path) : SkPath(path) {
13 0 : this->updateBoundsCache();
14 : #if 0 // Disabled to see if we ever really race on this. It costs time, chromium:496982.
15 : SkPathPriv::FirstDirection junk;
16 : (void)SkPathPriv::CheapComputeFirstDirection(*this, &junk);
17 : #endif
18 0 : }
19 :
20 0 : TypedMatrix::TypedMatrix(const SkMatrix& matrix) : SkMatrix(matrix) {
21 0 : (void)this->getType();
22 0 : }
23 : }
|