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

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

Issue 2351363002: Make CSSStyleImageValue a member of CanvasImageSource. (Closed)
Patch Set: Override isAccelerated Created 4 years, 2 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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class Font; 53 class Font;
54 class FontMetrics; 54 class FontMetrics;
55 class HitRegion; 55 class HitRegion;
56 class HitRegionOptions; 56 class HitRegionOptions;
57 class HitRegionManager; 57 class HitRegionManager;
58 class HitTestCanvasResult; 58 class HitTestCanvasResult;
59 class Path2D; 59 class Path2D;
60 class SVGMatrixTearOff; 60 class SVGMatrixTearOff;
61 class TextMetrics; 61 class TextMetrics;
62 62
63 typedef HTMLImageElementOrHTMLVideoElementOrHTMLCanvasElementOrImageBitmapOrOffs creenCanvas CanvasImageSourceUnion; 63 typedef CSSImageValueOrHTMLImageElementOrHTMLVideoElementOrHTMLCanvasElementOrIm ageBitmapOrOffscreenCanvas CanvasImageSourceUnion;
64 64
65 class MODULES_EXPORT CanvasRenderingContext2D final : public CanvasRenderingCont ext, public BaseRenderingContext2D, public WebThread::TaskObserver, public SVGRe sourceClient { 65 class MODULES_EXPORT CanvasRenderingContext2D final : public CanvasRenderingCont ext, public BaseRenderingContext2D, public WebThread::TaskObserver, public SVGRe sourceClient {
66 DEFINE_WRAPPERTYPEINFO(); 66 DEFINE_WRAPPERTYPEINFO();
67 USING_GARBAGE_COLLECTED_MIXIN(CanvasRenderingContext2D); 67 USING_GARBAGE_COLLECTED_MIXIN(CanvasRenderingContext2D);
68 USING_PRE_FINALIZER(CanvasRenderingContext2D, dispose); 68 USING_PRE_FINALIZER(CanvasRenderingContext2D, dispose);
69 public: 69 public:
70 class Factory : public CanvasRenderingContextFactory { 70 class Factory : public CanvasRenderingContextFactory {
71 WTF_MAKE_NONCOPYABLE(Factory); 71 WTF_MAKE_NONCOPYABLE(Factory);
72 public: 72 public:
73 Factory() {} 73 Factory() {}
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 bool m_pruneLocalFontCacheScheduled; 229 bool m_pruneLocalFontCacheScheduled;
230 ListHashSet<String> m_fontLRUList; 230 ListHashSet<String> m_fontLRUList;
231 }; 231 };
232 232
233 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, 233 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context,
234 context->is2d() && context->canvas(), context.is2d() && context.canvas()); 234 context->is2d() && context->canvas(), context.is2d() && context.canvas());
235 235
236 } // namespace blink 236 } // namespace blink
237 237
238 #endif // CanvasRenderingContext2D_h 238 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698