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

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

Issue 2862923002: More cleanups on the CanvasRenderingContextHost front (Closed)
Patch Set: Created 3 years, 7 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
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 TaskRunnerTimer<CanvasRenderingContext2D> 268 TaskRunnerTimer<CanvasRenderingContext2D>
269 dispatch_context_restored_event_timer_; 269 dispatch_context_restored_event_timer_;
270 TaskRunnerTimer<CanvasRenderingContext2D> try_restore_context_event_timer_; 270 TaskRunnerTimer<CanvasRenderingContext2D> try_restore_context_event_timer_;
271 271
272 FilterOperations filter_operations_; 272 FilterOperations filter_operations_;
273 HashMap<String, Font> fonts_resolved_using_current_style_; 273 HashMap<String, Font> fonts_resolved_using_current_style_;
274 bool should_prune_local_font_cache_; 274 bool should_prune_local_font_cache_;
275 ListHashSet<String> font_lru_list_; 275 ListHashSet<String> font_lru_list_;
276 }; 276 };
277 277
278 // TODO(fserb): remove this?
279 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, 278 DEFINE_TYPE_CASTS(CanvasRenderingContext2D,
280 CanvasRenderingContext, 279 CanvasRenderingContext,
281 context, 280 context,
282 context->Is2d() && context->host(), 281 context->Is2d() && context->host(),
283 context.Is2d() && context.host()); 282 context.Is2d() && context.host());
284 283
285 } // namespace blink 284 } // namespace blink
286 285
287 #endif // CanvasRenderingContext2D_h 286 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698