diff options
Diffstat (limited to 'app/gfx/skia_utils_gtk.h')
-rw-r--r-- | app/gfx/skia_utils_gtk.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/gfx/skia_utils_gtk.h b/app/gfx/skia_utils_gtk.h new file mode 100644 index 0000000..df68581 --- /dev/null +++ b/app/gfx/skia_utils_gtk.h @@ -0,0 +1,22 @@ +// Copyright (c) 2010 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 APP_GFX_SKIA_UTILS_GTK_H_ +#define APP_GFX_SKIA_UTILS_GTK_H_ + +#include "third_party/skia/include/core/SkColor.h" + +typedef struct _GdkColor GdkColor; + +namespace gfx { + +// Converts GdkColors to the ARGB layout Skia expects. +SkColor GdkColorToSkColor(GdkColor color); + +// Converts ARGB to GdkColor. +GdkColor SkColorToGdkColor(SkColor color); + +} // namespace gfx + +#endif // APP_GFX_SKIA_UTILS_GTK_H_ |