blob: 9c5e860d6d63504287db9f16e306db25cc276b96 [file] [log] [blame] [edit]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "export.h"
#include "third_party/skia/include/core/SkData.h"
SKWASM_EXPORT SkData* skData_create(size_t size) {
return SkData::MakeUninitialized(size).release();
}
SKWASM_EXPORT void* skData_getPointer(SkData* data) {
return data->writable_data();
}
SKWASM_EXPORT void skData_dispose(SkData* data) {
return data->unref();
}