OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | |
6 #include "modules/canvas2d/ContextAttributeHelpers.h" | 5 #include "modules/canvas2d/ContextAttributeHelpers.h" |
7 | 6 |
8 namespace blink { | 7 namespace blink { |
9 | 8 |
10 Canvas2DContextAttributes to2DContextAttributes(const CanvasContextCreationAttri
butes& attrs) | 9 Canvas2DContextAttributes to2DContextAttributes(const CanvasContextCreationAttri
butes& attrs) |
11 { | 10 { |
12 Canvas2DContextAttributes result; | 11 Canvas2DContextAttributes result; |
13 result.setAlpha(attrs.alpha()); | 12 result.setAlpha(attrs.alpha()); |
14 return result; | 13 return result; |
15 } | 14 } |
16 | 15 |
17 } // namespace blink | 16 } // namespace blink |
OLD | NEW |