Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h

Issue 2449243002: Gtk3 ui: Add libgtk3ui as a separate build component (Closed)
Patch Set: Add theme_properties dep to //chrome/browser/ui Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h
diff --git a/chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h b/chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h
deleted file mode 100644
index ccb6563229ffa411fe988d6b2eeaa966f710e1b9..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/libgtk2ui/skia_utils_gtk2.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) 2012 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 CHROME_BROWSER_UI_LIBGTK2UI_SKIA_UTILS_GTK2_H_
-#define CHROME_BROWSER_UI_LIBGTK2UI_SKIA_UTILS_GTK2_H_
-
-#include <stdint.h>
-
-#include "third_party/skia/include/core/SkColor.h"
-
-typedef struct _GdkColor GdkColor;
-typedef struct _GdkPixbuf GdkPixbuf;
-
-class SkBitmap;
-
-// Define a macro for creating GdkColors from RGB values. This is a macro to
-// allow static construction of literals, etc. Use this like:
-// GdkColor white = GDK_COLOR_RGB(0xff, 0xff, 0xff);
-#define GDK_COLOR_RGB(r, g, b) {0, r * ::libgtk2ui::kSkiaToGDKMultiplier, \
- g * ::libgtk2ui::kSkiaToGDKMultiplier, \
- b * ::libgtk2ui::kSkiaToGDKMultiplier}
-
-namespace libgtk2ui {
-
-// Multiply uint8_t color components by this.
-const int kSkiaToGDKMultiplier = 257;
-
-// Converts GdkColors to the ARGB layout Skia expects.
-SkColor GdkColorToSkColor(GdkColor color);
-
-// Converts ARGB to GdkColor.
-GdkColor SkColorToGdkColor(SkColor color);
-
-const SkBitmap GdkPixbufToImageSkia(GdkPixbuf* pixbuf);
-
-// Convert and copy a SkBitmap to a GdkPixbuf. NOTE: this uses BGRAToRGBA, so
-// it is an expensive operation. The returned GdkPixbuf will have a refcount of
-// 1, and the caller is responsible for unrefing it when done.
-GdkPixbuf* GdkPixbufFromSkBitmap(const SkBitmap& bitmap);
-
-} // namespace libgtk2ui
-
-#endif // CHROME_BROWSER_UI_LIBGTK2UI_SKIA_UTILS_GTK2_H_
« no previous file with comments | « chrome/browser/ui/libgtk2ui/select_file_dialog_interactive_uitest.cc ('k') | chrome/browser/ui/libgtk2ui/skia_utils_gtk2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698