| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 4 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 5 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
| 8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 8 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
| 9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. | 9 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. |
| 10 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 10 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 | 960 |
| 961 bool CanvasRenderingContext2D::isTransformInvertible() const { | 961 bool CanvasRenderingContext2D::isTransformInvertible() const { |
| 962 return state().isTransformInvertible(); | 962 return state().isTransformInvertible(); |
| 963 } | 963 } |
| 964 | 964 |
| 965 WebLayer* CanvasRenderingContext2D::platformLayer() const { | 965 WebLayer* CanvasRenderingContext2D::platformLayer() const { |
| 966 return canvas()->buffer() ? canvas()->buffer()->platformLayer() : 0; | 966 return canvas()->buffer() ? canvas()->buffer()->platformLayer() : 0; |
| 967 } | 967 } |
| 968 | 968 |
| 969 void CanvasRenderingContext2D::getContextAttributes( | 969 void CanvasRenderingContext2D::getContextAttributes( |
| 970 Canvas2DContextAttributes& attrs) const { | 970 CanvasRenderingContext2DSettings& settings) const { |
| 971 attrs.setAlpha(creationAttributes().alpha()); | 971 settings.setAlpha(creationAttributes().alpha()); |
| 972 attrs.setColorSpace(colorSpaceAsString()); | 972 settings.setColorSpace(colorSpaceAsString()); |
| 973 settings.setPixelFormat(pixelFormatAsString()); |
| 974 settings.setLinearPixelMath(linearPixelMath()); |
| 973 } | 975 } |
| 974 | 976 |
| 975 void CanvasRenderingContext2D::drawFocusIfNeeded(Element* element) { | 977 void CanvasRenderingContext2D::drawFocusIfNeeded(Element* element) { |
| 976 drawFocusIfNeededInternal(m_path, element); | 978 drawFocusIfNeededInternal(m_path, element); |
| 977 } | 979 } |
| 978 | 980 |
| 979 void CanvasRenderingContext2D::drawFocusIfNeeded(Path2D* path2d, | 981 void CanvasRenderingContext2D::drawFocusIfNeeded(Path2D* path2d, |
| 980 Element* element) { | 982 Element* element) { |
| 981 drawFocusIfNeededInternal(path2d->path(), element); | 983 drawFocusIfNeededInternal(path2d->path(), element); |
| 982 } | 984 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 } | 1159 } |
| 1158 return true; | 1160 return true; |
| 1159 } | 1161 } |
| 1160 | 1162 |
| 1161 void CanvasRenderingContext2D::resetUsageTracking() { | 1163 void CanvasRenderingContext2D::resetUsageTracking() { |
| 1162 UsageCounters newCounters; | 1164 UsageCounters newCounters; |
| 1163 m_usageCounters = newCounters; | 1165 m_usageCounters = newCounters; |
| 1164 } | 1166 } |
| 1165 | 1167 |
| 1166 } // namespace blink | 1168 } // namespace blink |
| OLD | NEW |