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

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

Issue 2508943003: Make OffscreenCanvas resizeable (Closed)
Patch Set: Created 4 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) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 CanvasRenderingContext2D(HTMLCanvasElement*, 203 CanvasRenderingContext2D(HTMLCanvasElement*,
204 const CanvasContextCreationAttributes& attrs, 204 const CanvasContextCreationAttributes& attrs,
205 Document&); 205 Document&);
206 206
207 void dispose(); 207 void dispose();
208 208
209 void dispatchContextLostEvent(TimerBase*); 209 void dispatchContextLostEvent(TimerBase*);
210 void dispatchContextRestoredEvent(TimerBase*); 210 void dispatchContextRestoredEvent(TimerBase*);
211 void tryRestoreContextEvent(TimerBase*); 211 void tryRestoreContextEvent(TimerBase*);
212 212
213 void unwindStateStack();
214
215 void pruneLocalFontCache(size_t targetSize); 213 void pruneLocalFontCache(size_t targetSize);
216 void schedulePruneLocalFontCacheIfNeeded(); 214 void schedulePruneLocalFontCacheIfNeeded();
217 215
218 void scrollPathIntoViewInternal(const Path&); 216 void scrollPathIntoViewInternal(const Path&);
219 217
220 void drawTextInternal(const String&, 218 void drawTextInternal(const String&,
221 double x, 219 double x,
222 double y, 220 double y,
223 CanvasRenderingContext2DState::PaintType, 221 CanvasRenderingContext2DState::PaintType,
224 double* maxWidth = nullptr); 222 double* maxWidth = nullptr);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 259
262 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, 260 DEFINE_TYPE_CASTS(CanvasRenderingContext2D,
263 CanvasRenderingContext, 261 CanvasRenderingContext,
264 context, 262 context,
265 context->is2d() && context->canvas(), 263 context->is2d() && context->canvas(),
266 context.is2d() && context.canvas()); 264 context.is2d() && context.canvas());
267 265
268 } // namespace blink 266 } // namespace blink
269 267
270 #endif // CanvasRenderingContext2D_h 268 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698