buffer_usage_util.h 489 B

123456789101112131415161718
  1. // Copyright 2019 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.
  4. #ifndef UI_GFX_BUFFER_USAGE_UTIL_H_
  5. #define UI_GFX_BUFFER_USAGE_UTIL_H_
  6. #include "ui/gfx/buffer_types.h"
  7. #include "ui/gfx/gfx_export.h"
  8. namespace gfx {
  9. // Returns the name of |usage| as a string.
  10. GFX_EXPORT const char* BufferUsageToString(BufferUsage usage);
  11. } // namespace gfx
  12. #endif // UI_GFX_BUFFER_USAGE_UTIL_H_