SkRecords.cpp 704 B

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