Chromium Code Reviews| Index: cc/paint/paint_flags.h |
| diff --git a/cc/paint/paint_flags.h b/cc/paint/paint_flags.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..aa7c77304a6898db4622fb2a4326d1fad5832dbe |
| --- /dev/null |
| +++ b/cc/paint/paint_flags.h |
| @@ -0,0 +1,19 @@ |
| +// Copyright 2017 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_PAINT_PAINT_FLAGS_H_ |
| +#define CC_PAINT_PAINT_FLAGS_H_ |
| + |
| +#include "third_party/skia/include/core/SkPaint.h" |
| + |
| +namespace cc { |
| +typedef SkPaint PaintFlags; |
|
vmpstr
2017/01/21 01:11:31
nit: using
|
| + |
| +inline const SkPaint& ToSkPaint(const PaintFlags& paint) { |
|
vmpstr
2017/01/21 01:11:31
I like these functions, thanks!
|
| + return paint; |
| +} |
| + |
| +} // namespace cc |
| + |
| +#endif // CC_PAINT_PAINT_FLAGS_H_ |