blob: 5b6bf6b7ce92a67cd33eebc3615c1c9210b0c800 [file] [log] [blame]
scroggo@google.com5a7c6be2012-10-04 21:46:08 +00001/*
2 * Copyright 2012 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
8#include "SkFlattenable.h"
scroggo@google.com5a7c6be2012-10-04 21:46:08 +00009#include "SkImageRef_GlobalPool.h"
10#include "SkImages.h"
11
djsollen@google.com528a5562013-02-01 15:57:13 +000012#ifdef SK_BUILD_FOR_ANDROID
13#include "SkImageRef_ashmem.h"
14#endif
15
scroggo@google.com5a7c6be2012-10-04 21:46:08 +000016void SkImages::InitializeFlattenables() {
scroggo@google.com5a7c6be2012-10-04 21:46:08 +000017 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageRef_GlobalPool)
djsollen@google.com528a5562013-02-01 15:57:13 +000018#ifdef SK_BUILD_FOR_ANDROID
19 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageRef_ashmem)
20#endif
scroggo@google.com5a7c6be2012-10-04 21:46:08 +000021}