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

Side by Side Diff: Source/modules/canvas2d/CanvasRenderingContext2D.h

Issue 1297383003: Keep TextMetrics on the Oilpan heap always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/core/html/TextMetrics.idl ('k') | Source/modules/canvas2d/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 String textBaseline() const; 190 String textBaseline() const;
191 void setTextBaseline(const String&); 191 void setTextBaseline(const String&);
192 192
193 String direction() const; 193 String direction() const;
194 void setDirection(const String&); 194 void setDirection(const String&);
195 195
196 void fillText(const String& text, float x, float y); 196 void fillText(const String& text, float x, float y);
197 void fillText(const String& text, float x, float y, float maxWidth); 197 void fillText(const String& text, float x, float y, float maxWidth);
198 void strokeText(const String& text, float x, float y); 198 void strokeText(const String& text, float x, float y);
199 void strokeText(const String& text, float x, float y, float maxWidth); 199 void strokeText(const String& text, float x, float y, float maxWidth);
200 PassRefPtrWillBeRawPtr<TextMetrics> measureText(const String& text); 200 TextMetrics* measureText(const String& text);
201 201
202 bool imageSmoothingEnabled() const; 202 bool imageSmoothingEnabled() const;
203 void setImageSmoothingEnabled(bool); 203 void setImageSmoothingEnabled(bool);
204 204
205 void getContextAttributes(Canvas2DContextAttributes&) const; 205 void getContextAttributes(Canvas2DContextAttributes&) const;
206 206
207 void drawFocusIfNeeded(Element*); 207 void drawFocusIfNeeded(Element*);
208 void drawFocusIfNeeded(Path2D*, Element*); 208 void drawFocusIfNeeded(Path2D*, Element*);
209 209
210 void addHitRegion(const HitRegionOptions&, ExceptionState&); 210 void addHitRegion(const HitRegionOptions&, ExceptionState&);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; 316 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
317 bool m_pruneLocalFontCacheScheduled; 317 bool m_pruneLocalFontCacheScheduled;
318 ListHashSet<String> m_fontLRUList; 318 ListHashSet<String> m_fontLRUList;
319 }; 319 };
320 320
321 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 321 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
322 322
323 } // namespace blink 323 } // namespace blink
324 324
325 #endif // CanvasRenderingContext2D_h 325 #endif // CanvasRenderingContext2D_h
OLDNEW
« no previous file with comments | « Source/core/html/TextMetrics.idl ('k') | Source/modules/canvas2d/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698