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

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

Issue 49093004: Move more arrays of strings to shareable memory (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 1 month 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
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, 2013 Intel Corporation. All rights reserved. 8 * Copyright (C) 2012, 2013 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "wtf/MathExtras.h" 70 #include "wtf/MathExtras.h"
71 #include "wtf/OwnPtr.h" 71 #include "wtf/OwnPtr.h"
72 #include "wtf/Uint8ClampedArray.h" 72 #include "wtf/Uint8ClampedArray.h"
73 #include "wtf/text/StringBuilder.h" 73 #include "wtf/text/StringBuilder.h"
74 74
75 using namespace std; 75 using namespace std;
76 76
77 namespace WebCore { 77 namespace WebCore {
78 78
79 static const int defaultFontSize = 10; 79 static const int defaultFontSize = 10;
80 static const char* const defaultFontFamily = "sans-serif"; 80 static const char defaultFontFamily[] = "sans-serif";
81 static const char* const defaultFont = "10px sans-serif"; 81 static const char defaultFont[] = "10px sans-serif";
82 82
83 CanvasRenderingContext2D::CanvasRenderingContext2D(HTMLCanvasElement* canvas, co nst Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityParseMode) 83 CanvasRenderingContext2D::CanvasRenderingContext2D(HTMLCanvasElement* canvas, co nst Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityParseMode)
84 : CanvasRenderingContext(canvas) 84 : CanvasRenderingContext(canvas)
85 , m_stateStack(1) 85 , m_stateStack(1)
86 , m_unrealizedSaveCount(0) 86 , m_unrealizedSaveCount(0)
87 , m_usesCSSCompatibilityParseMode(usesCSSCompatibilityParseMode) 87 , m_usesCSSCompatibilityParseMode(usesCSSCompatibilityParseMode)
88 , m_hasAlpha(!attrs || attrs->alpha()) 88 , m_hasAlpha(!attrs || attrs->alpha())
89 { 89 {
90 ScriptWrappable::init(this); 90 ScriptWrappable::init(this);
91 } 91 }
(...skipping 2337 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 const int focusRingWidth = 5; 2429 const int focusRingWidth = 5;
2430 const int focusRingOutline = 0; 2430 const int focusRingOutline = 0;
2431 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); 2431 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor);
2432 2432
2433 c->restore(); 2433 c->restore();
2434 2434
2435 didDraw(dirtyRect); 2435 didDraw(dirtyRect);
2436 } 2436 }
2437 2437
2438 } // namespace WebCore 2438 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/inspector/InspectorDOMDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698