summaryrefslogtreecommitdiffstats
path: root/ui/gfx/skia_utils_gtk.h
blob: f6af64cd81a729d5ce4b18b2e8008640b3a79d42 (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
// Copyright (c) 2011 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 UI_GFX_SKIA_UTILS_GTK_H_
#define UI_GFX_SKIA_UTILS_GTK_H_
#pragma once

#include "third_party/skia/include/core/SkColor.h"
#include "ui/ui_api.h"

typedef struct _GdkColor GdkColor;

namespace gfx {

// Converts GdkColors to the ARGB layout Skia expects.
UI_API SkColor GdkColorToSkColor(GdkColor color);

// Converts ARGB to GdkColor.
UI_API GdkColor SkColorToGdkColor(SkColor color);

}  // namespace gfx

#endif  // UI_GFX_SKIA_UTILS_GTK_H_