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

Side by Side Diff: Source/core/html/HTMLCanvasElement.h

Issue 402613006: Fixing 2D canvas invalidation region tracking. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixups and baselines Created 6 years, 5 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) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // DocumentVisibilityObserver implementation 144 // DocumentVisibilityObserver implementation
145 virtual void didChangeVisibilityState(PageVisibilityState) OVERRIDE; 145 virtual void didChangeVisibilityState(PageVisibilityState) OVERRIDE;
146 146
147 // CanvasImageSource implementation 147 // CanvasImageSource implementation
148 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const OVERRIDE; 148 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const OVERRIDE;
149 virtual bool wouldTaintOrigin(SecurityOrigin*) const OVERRIDE; 149 virtual bool wouldTaintOrigin(SecurityOrigin*) const OVERRIDE;
150 virtual FloatSize sourceSize() const OVERRIDE; 150 virtual FloatSize sourceSize() const OVERRIDE;
151 151
152 // ImageBufferClient implementation 152 // ImageBufferClient implementation
153 virtual void notifySurfaceInvalid() OVERRIDE; 153 virtual void notifySurfaceInvalid() OVERRIDE;
154 virtual void didPresent() OVERRIDE;
154 155
155 virtual void trace(Visitor*) OVERRIDE; 156 virtual void trace(Visitor*) OVERRIDE;
156 157
157 protected: 158 protected:
158 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 159 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
159 160
160 private: 161 private:
161 explicit HTMLCanvasElement(Document&); 162 explicit HTMLCanvasElement(Document&);
162 163
163 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 164 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 OwnPtr<ImageBuffer> m_imageBuffer; 201 OwnPtr<ImageBuffer> m_imageBuffer;
201 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; 202 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver;
202 203
203 mutable RefPtr<Image> m_presentedImage; 204 mutable RefPtr<Image> m_presentedImage;
204 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). 205 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue).
205 }; 206 };
206 207
207 } //namespace 208 } //namespace
208 209
209 #endif 210 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/repaint/canvas-putImageData-expected.txt ('k') | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698