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

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

Issue 1928043002: Add drawImage() originClean() getSecurityOrigin() to OffscreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drawImage API added to interface listing Created 4 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 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS tyle) override; 136 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS tyle) override;
137 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi nt& location) override; 137 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi nt& location) override;
138 String getIdFromControl(const Element*) override; 138 String getIdFromControl(const Element*) override;
139 139
140 // SVGResourceClient implementation 140 // SVGResourceClient implementation
141 void filterNeedsInvalidation() override; 141 void filterNeedsInvalidation() override;
142 142
143 // BaseRenderingContext2D implementation 143 // BaseRenderingContext2D implementation
144 bool originClean() const final; 144 bool originClean() const final;
145 void setOriginTainted() final; 145 void setOriginTainted() final;
146 bool wouldTaintOrigin(CanvasImageSource* source, ScriptState*) final { retur n CanvasRenderingContext::wouldTaintOrigin(source); } 146 bool wouldTaintOrigin(CanvasImageSource* source, ExecutionContext*) final { return CanvasRenderingContext::wouldTaintOrigin(source); }
147 147
148 int width() const final; 148 int width() const final;
149 int height() const final; 149 int height() const final;
150 150
151 bool hasImageBuffer() const final; 151 bool hasImageBuffer() const final;
152 ImageBuffer* imageBuffer() const final; 152 ImageBuffer* imageBuffer() const final;
153 153
154 bool parseColorOrCurrentColor(Color&, const String& colorString) const final ; 154 bool parseColorOrCurrentColor(Color&, const String& colorString) const final ;
155 155
156 SkCanvas* drawingCanvas() const final; 156 SkCanvas* drawingCanvas() const final;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; 218 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
219 bool m_pruneLocalFontCacheScheduled; 219 bool m_pruneLocalFontCacheScheduled;
220 ListHashSet<String> m_fontLRUList; 220 ListHashSet<String> m_fontLRUList;
221 }; 221 };
222 222
223 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 223 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
224 224
225 } // namespace blink 225 } // namespace blink
226 226
227 #endif // CanvasRenderingContext2D_h 227 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698