1cb93a386Sopenharmony_ci/* 2cb93a386Sopenharmony_ci * Copyright 2015 Google Inc. 3cb93a386Sopenharmony_ci * 4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be 5cb93a386Sopenharmony_ci * found in the LICENSE file. 6cb93a386Sopenharmony_ci */ 7cb93a386Sopenharmony_ci 8cb93a386Sopenharmony_ci#include "src/core/SkPathPriv.h" 9cb93a386Sopenharmony_ci#include "src/core/SkRecords.h" 10cb93a386Sopenharmony_ci 11cb93a386Sopenharmony_cinamespace SkRecords { 12cb93a386Sopenharmony_ci PreCachedPath::PreCachedPath(const SkPath& path) : SkPath(path) { 13cb93a386Sopenharmony_ci this->updateBoundsCache(); 14cb93a386Sopenharmony_ci (void)this->getGenerationID(); 15cb93a386Sopenharmony_ci#if 0 // Disabled to see if we ever really race on this. It costs time, chromium:496982. 16cb93a386Sopenharmony_ci SkPathPriv::FirstDirection junk; 17cb93a386Sopenharmony_ci (void)SkPathPriv::CheapComputeFirstDirection(*this, &junk); 18cb93a386Sopenharmony_ci#endif 19cb93a386Sopenharmony_ci } 20cb93a386Sopenharmony_ci 21cb93a386Sopenharmony_ci TypedMatrix::TypedMatrix(const SkMatrix& matrix) : SkMatrix(matrix) { 22cb93a386Sopenharmony_ci (void)this->getType(); 23cb93a386Sopenharmony_ci } 24cb93a386Sopenharmony_ci} // namespace SkRecords 25