Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Side by Side Diff: Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/html/canvas/CanvasRenderingContext.cpp ('k') | Source/WebCore/html/canvas/WebGLContextEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698