gfx/skia/trunk/src/lazy/SkPurgeableMemoryBlock_common.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/lazy/SkPurgeableMemoryBlock_common.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +/*
     1.5 + * Copyright 2013 Google Inc.
     1.6 + *
     1.7 + * Use of this source code is governed by a BSD-style license that can be
     1.8 + * found in the LICENSE file.
     1.9 + */
    1.10 +
    1.11 +#include "SkPurgeableMemoryBlock.h"
    1.12 +
    1.13 +SkPurgeableMemoryBlock* SkPurgeableMemoryBlock::Create(size_t size) {
    1.14 +    SkASSERT(IsSupported());
    1.15 +    if (!IsSupported()) {
    1.16 +        return NULL;
    1.17 +    }
    1.18 +    return SkNEW_ARGS(SkPurgeableMemoryBlock, (size));
    1.19 +}

mercurial