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

Unified Diff: cc/stubs/skia_utils.h

Issue 11293084: cc: Get rid of FloatToSkScalar() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « cc/stubs/SkiaUtils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/stubs/skia_utils.h
diff --git a/cc/stubs/skia_utils.h b/cc/stubs/skia_utils.h
deleted file mode 100644
index 8404fa322ced67ca195f15b50dae9af6a2aed21e..0000000000000000000000000000000000000000
--- a/cc/stubs/skia_utils.h
+++ /dev/null
@@ -1,29 +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 CC_STUBS_SKIAUTILS_H_
-#define CC_STUBS_SKIAUTILS_H_
-
-#include <limits>
-
-#include "third_party/skia/include/core/SkScalar.h"
-
-namespace cc {
-
-// Skia has problems when passed infinite, etc floats, filter them to 0.
-inline SkScalar FloatToSkScalar(float f)
-{
- // This checks if |f| is NaN.
- if (f != f)
- return 0;
- if (f == std::numeric_limits<double>::infinity())
- return 0;
- if (f == -std::numeric_limits<double>::infinity())
- return 0;
- return SkFloatToScalar(f);
-}
-
-}
-
-#endif // CC_STUBS_SKIAUTILS_H_
« no previous file with comments | « cc/stubs/SkiaUtils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698