summaryrefslogtreecommitdiffstats
path: root/skia/ext/skia_utils.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 23:46:04 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-11 23:46:04 +0000
commit5a9bb950970d732b3d9f0ed4ecc052c6d213bde4 (patch)
treea48897126b35d149d0651f4fd53cf789c99af2b7 /skia/ext/skia_utils.cc
parent1525c68ec291218d831e29ea34aaf5a516daf855 (diff)
downloadchromium_src-5a9bb950970d732b3d9f0ed4ecc052c6d213bde4.zip
chromium_src-5a9bb950970d732b3d9f0ed4ecc052c6d213bde4.tar.gz
chromium_src-5a9bb950970d732b3d9f0ed4ecc052c6d213bde4.tar.bz2
Make clicking on side tabs to select them work.
Use a simple round rect for the visual treatment. Add some rect conversion utils. http://crbug.com/34509 TEST=none Review URL: http://codereview.chromium.org/597012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/skia_utils.cc')
-rw-r--r--skia/ext/skia_utils.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/skia/ext/skia_utils.cc b/skia/ext/skia_utils.cc
deleted file mode 100644
index c95054d..0000000
--- a/skia/ext/skia_utils.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2009 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.
-
-#include "skia/ext/skia_utils.h"
-#include "third_party/skia/include/core/SkColorPriv.h"
-#include "third_party/skia/include/core/SkShader.h"
-#include "third_party/skia/include/effects/SkGradientShader.h"
-
-namespace skia {
-
-SkShader* CreateGradientShader(int start_point,
- int end_point,
- SkColor start_color,
- SkColor end_color) {
- SkColor grad_colors[2] = { start_color, end_color};
- SkPoint grad_points[2];
- grad_points[0].set(SkIntToScalar(0), SkIntToScalar(start_point));
- grad_points[1].set(SkIntToScalar(0), SkIntToScalar(end_point));
-
- return SkGradientShader::CreateLinear(
- grad_points, grad_colors, NULL, 2, SkShader::kRepeat_TileMode);
-}
-
-} // namespace skia
-