diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 01:11:58 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-03 01:11:58 +0000 |
commit | ae615162135445eb0b94365b1a1cfa511e7f4be4 (patch) | |
tree | a32c9ad049aa25b3c40038713d546c3521d3d20e /base/gfx/native_theme.cc | |
parent | 693f8e4af78b0bb38cb56cd913c8774c75b43067 (diff) | |
download | chromium_src-ae615162135445eb0b94365b1a1cfa511e7f4be4.zip chromium_src-ae615162135445eb0b94365b1a1cfa511e7f4be4.tar.gz chromium_src-ae615162135445eb0b94365b1a1cfa511e7f4be4.tar.bz2 |
Revert my skia file moves because of layout test failures.
Review URL: http://codereview.chromium.org/12892
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/native_theme.cc')
-rw-r--r-- | base/gfx/native_theme.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base/gfx/native_theme.cc b/base/gfx/native_theme.cc index 8c7914d..71289d8 100644 --- a/base/gfx/native_theme.cc +++ b/base/gfx/native_theme.cc @@ -10,11 +10,11 @@ #include <vssym32.h> #include "base/gfx/gdi_util.h" +#include "base/gfx/skia_utils.h" #include "base/gfx/rect.h" #include "base/logging.h" #include "base/scoped_handle.h" #include "skia/ext/platform_canvas.h" -#include "skia/ext/skia_utils_win.h" #include "skia/include/SkShader.h" namespace gfx { @@ -213,8 +213,8 @@ HRESULT NativeTheme::PaintScrollbarTrack(HDC hdc, } else { // Create a 2x2 checkerboard pattern using the 3D face and highlight // colors. - SkColor face = skia::COLORREFToSkColor(color3DFace); - SkColor highlight = skia::COLORREFToSkColor(GetSysColor(COLOR_3DHILIGHT)); + SkColor face = COLORREFToSkColor(color3DFace); + SkColor highlight = COLORREFToSkColor(GetSysColor(COLOR_3DHILIGHT)); SkColor buffer[] = { face, highlight, highlight, face }; SkBitmap bitmap; bitmap.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); @@ -232,7 +232,7 @@ HRESULT NativeTheme::PaintScrollbarTrack(HDC hdc, shader->setLocalMatrix(matrix); SkPaint paint; paint.setShader(shader)->unref(); - canvas->drawIRect(skia::RECTToSkIRect(*target_rect), paint); + canvas->drawIRect(RECTToSkIRect(*target_rect), paint); } if (classic_state & DFCS_PUSHED) InvertRect(hdc, target_rect); @@ -466,7 +466,7 @@ HRESULT NativeTheme::GetThemeColor(ThemeName theme, COLORREF color_ref; if (get_theme_color_(handle, part_id, state_id, prop_id, &color_ref) == S_OK) { - *color = skia::COLORREFToSkColor(color_ref); + *color = gfx::COLORREFToSkColor(color_ref); return S_OK; } } @@ -480,7 +480,7 @@ SkColor NativeTheme::GetThemeColorWithDefault(ThemeName theme, int default_sys_color) const { SkColor color; if (GetThemeColor(theme, part_id, state_id, prop_id, &color) != S_OK) - color = skia::COLORREFToSkColor(GetSysColor(default_sys_color)); + color = gfx::COLORREFToSkColor(GetSysColor(default_sys_color)); return color; } |