| Index: cc/stubs/skia_utils.h
|
| diff --git a/cc/stubs/skia_utils.h b/cc/stubs/skia_utils.h
|
| index 638cbb270ce9b24689d5095baf174ade4f4d1a13..fb81f3eec3ad509ebe615790ea4eaf31b7f5f36b 100644
|
| --- a/cc/stubs/skia_utils.h
|
| +++ b/cc/stubs/skia_utils.h
|
| @@ -1,3 +1,17 @@
|
| -// Copyright 2012 The Chromium Authors. All rights reserved.
|
| +// 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_
|
| +
|
| +namespace cc {
|
| +
|
| +inline SkScalar CCFloatToSkScalar(float f)
|
| +{
|
| + return SkFloatToScalar(isfinite(f) ? f : 0);
|
| +}
|
| +
|
| +}
|
| +
|
| +#endif // CC_STUBS_SKIAUTILS_H_
|
|
|