| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
| 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
| 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
| 8 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 10 * | 10 * |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 context->restore(); | 139 context->restore(); |
| 140 } | 140 } |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 | 143 |
| 144 CanvasRenderingContext2D::~CanvasRenderingContext2D() | 144 CanvasRenderingContext2D::~CanvasRenderingContext2D() |
| 145 { | 145 { |
| 146 #if !ASSERT_DISABLED | 146 #if !ASSERT_DISABLED |
| 147 unwindStateStack(); | 147 unwindStateStack(); |
| 148 #endif | 148 #endif |
| 149 ScriptWrappable::init(this); |
| 149 } | 150 } |
| 150 | 151 |
| 151 bool CanvasRenderingContext2D::isAccelerated() const | 152 bool CanvasRenderingContext2D::isAccelerated() const |
| 152 { | 153 { |
| 153 #if USE(IOSURFACE_CANVAS_BACKING_STORE) || ENABLE(ACCELERATED_2D_CANVAS) | 154 #if USE(IOSURFACE_CANVAS_BACKING_STORE) || ENABLE(ACCELERATED_2D_CANVAS) |
| 154 if (!canvas()->hasCreatedImageBuffer()) | 155 if (!canvas()->hasCreatedImageBuffer()) |
| 155 return false; | 156 return false; |
| 156 GraphicsContext* context = drawingContext(); | 157 GraphicsContext* context = drawingContext(); |
| 157 return context && context->isAcceleratedContext(); | 158 return context && context->isAcceleratedContext(); |
| 158 #else | 159 #else |
| (...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2251 return; | 2252 return; |
| 2252 | 2253 |
| 2253 realizeSaves(); | 2254 realizeSaves(); |
| 2254 modifiableState().m_imageSmoothingEnabled = enabled; | 2255 modifiableState().m_imageSmoothingEnabled = enabled; |
| 2255 GraphicsContext* c = drawingContext(); | 2256 GraphicsContext* c = drawingContext(); |
| 2256 if (c) | 2257 if (c) |
| 2257 c->setImageInterpolationQuality(enabled ? DefaultInterpolationQuality :
InterpolationNone); | 2258 c->setImageInterpolationQuality(enabled ? DefaultInterpolationQuality :
InterpolationNone); |
| 2258 } | 2259 } |
| 2259 | 2260 |
| 2260 } // namespace WebCore | 2261 } // namespace WebCore |
| OLD | NEW |