SkDiscardableMemory_none.cpp 397 B

1234567891011121314
  1. /*
  2. * Copyright 2013 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 "include/core/SkTypes.h"
  8. #include "src/core/SkDiscardableMemory.h"
  9. #include "src/lazy/SkDiscardableMemoryPool.h"
  10. SkDiscardableMemory* SkDiscardableMemory::Create(size_t bytes) {
  11. return SkGetGlobalDiscardableMemoryPool()->create(bytes);
  12. }