summaryrefslogtreecommitdiff
path: root/chromium/cc/resources/resource_format.h
blob: ef83cc02eb757709bf2a9a9ff75015fb2e1368b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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,
  RGB_565,
  RESOURCE_FORMAT_MAX = RGB_565,
};

SkBitmap::Config SkBitmapConfigFromFormat(ResourceFormat format);

}  // namespace cc

#endif  // CC_RESOURCES_RESOURCE_FORMAT_H_