Chromium Code Reviews| Index: cc/resources/resource_format.h |
| diff --git a/cc/resources/resource_format.h b/cc/resources/resource_format.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4b12d929ed100d06961ca5fa635f10b7fac2bf2c |
| --- /dev/null |
| +++ b/cc/resources/resource_format.h |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CC_RESOURCES_RESOURCE_FORMAT_H_ |
| +#define CC_RESOURCES_RESOURCE_FORMAT_H_ |
| + |
| +#include "base/logging.h" |
| +#include "third_party/skia/include/core/SkBitmap.h" |
| + |
| +namespace cc { |
| + |
| +enum ResourceFormat { |
| + RGBA_8888, |
| + RGBA_4444, |
| + BGRA_8888, |
| + LUMINANCE_8, |
| + RESOURCE_FORMAT_MAX = LUMINANCE_8, |
|
reveman
2013/09/16 15:55:14
Note: we typically use NUM_RESOURCE_FORMATS in cc/
kaanb
2013/09/16 18:36:37
Acknowledged.
|
| +}; |
| + |
| +SkBitmap::Config SkBitmapConfigFromFormat(ResourceFormat format); |
| + |
| +} // namespace cc |
| + |
| +#endif // CC_RESOURCES_RESOURCE_FORMAT_H_ |