scroggo@google.com | 5a7c6be | 2012-10-04 21:46:08 +0000 | [diff] [blame] | 1 | /* |
| 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.com | 5a7c6be | 2012-10-04 21:46:08 +0000 | [diff] [blame] | 9 | #include "SkImageRef_GlobalPool.h" |
| 10 | #include "SkImages.h" |
| 11 | |
djsollen@google.com | 528a556 | 2013-02-01 15:57:13 +0000 | [diff] [blame] | 12 | #ifdef SK_BUILD_FOR_ANDROID |
| 13 | #include "SkImageRef_ashmem.h" |
| 14 | #endif |
| 15 | |
scroggo@google.com | 5a7c6be | 2012-10-04 21:46:08 +0000 | [diff] [blame] | 16 | void SkImages::InitializeFlattenables() { |
scroggo@google.com | 5a7c6be | 2012-10-04 21:46:08 +0000 | [diff] [blame] | 17 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageRef_GlobalPool) |
djsollen@google.com | 528a556 | 2013-02-01 15:57:13 +0000 | [diff] [blame] | 18 | #ifdef SK_BUILD_FOR_ANDROID |
| 19 | SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkImageRef_ashmem) |
| 20 | #endif |
scroggo@google.com | 5a7c6be | 2012-10-04 21:46:08 +0000 | [diff] [blame] | 21 | } |