Move NumberOfPlanesForGpuMemoryBufferFormat to gfx
[chromium-blink-merge.git] / ui / gfx / buffer_format_util.h
blob96b18595bb81ee779d330f91de01b7a9a1b808b3
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_GFX_BUFFER_FORMAT_UTIL_H_
6 #define UI_GFX_BUFFER_FORMAT_UTIL_H_
8 #include "base/basictypes.h"
9 #include "ui/gfx/buffer_types.h"
10 #include "ui/gfx/gfx_export.h"
12 namespace gfx {
14 // Returns the number of planes for |format|.
15 GFX_EXPORT size_t NumberOfPlanesForBufferFormat(BufferFormat format);
17 } // namespace gfx
19 #endif // UI_GFX_BUFFER_FORMAT_UTIL_H_