diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 23:07:42 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 23:07:42 +0000 |
commit | 0d74f1e8fe44154ab7842812443b3138b2993c8c (patch) | |
tree | 11c2f071f68c19b3f25eed9150c1be11864eedc5 /base | |
parent | f799dd77cdfe8e5b29236547801f2e89ed0ed079 (diff) | |
download | chromium_src-0d74f1e8fe44154ab7842812443b3138b2993c8c.zip chromium_src-0d74f1e8fe44154ab7842812443b3138b2993c8c.tar.gz chromium_src-0d74f1e8fe44154ab7842812443b3138b2993c8c.tar.bz2 |
Move skia_utils into the skia namespace.
Review URL: http://codereview.chromium.org/14079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6948 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/gfx/native_theme.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/gfx/native_theme.cc b/base/gfx/native_theme.cc index 24a5e37..8c7914d 100644 --- a/base/gfx/native_theme.cc +++ b/base/gfx/native_theme.cc @@ -213,8 +213,8 @@ HRESULT NativeTheme::PaintScrollbarTrack(HDC hdc, } else { // Create a 2x2 checkerboard pattern using the 3D face and highlight // colors. - SkColor face = COLORREFToSkColor(color3DFace); - SkColor highlight = COLORREFToSkColor(GetSysColor(COLOR_3DHILIGHT)); + SkColor face = skia::COLORREFToSkColor(color3DFace); + SkColor highlight = skia::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(RECTToSkIRect(*target_rect), paint); + canvas->drawIRect(skia::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 = gfx::COLORREFToSkColor(color_ref); + *color = skia::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 = gfx::COLORREFToSkColor(GetSysColor(default_sys_color)); + color = skia::COLORREFToSkColor(GetSysColor(default_sys_color)); return color; } |