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

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

Issue 341213002: Redraw only dirty area for accelerated 2D Canvas. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 154
155 virtual void trace(Visitor*) OVERRIDE; 155 virtual void trace(Visitor*) OVERRIDE;
156 156
157 FloatRect dirtyRect() { return m_dirtyRect; }
158
157 protected: 159 protected:
158 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 160 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
159 161
160 private: 162 private:
161 explicit HTMLCanvasElement(Document&); 163 explicit HTMLCanvasElement(Document&);
162 164
163 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 165 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
164 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 166 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
165 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 167 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }
166 168
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 OwnPtr<ImageBuffer> m_imageBuffer; 202 OwnPtr<ImageBuffer> m_imageBuffer;
201 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver; 203 mutable OwnPtr<GraphicsContextStateSaver> m_contextStateSaver;
202 204
203 mutable RefPtr<Image> m_presentedImage; 205 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). 206 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 }; 207 };
206 208
207 } //namespace 209 } //namespace
208 210
209 #endif 211 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLCanvasElement.cpp » ('j') | Source/core/html/HTMLCanvasElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698