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

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

Issue 1288773005: 2D canvas: remain in deferred rendering mode with canvas to canvas drawImage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add init of snapShot state Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 PassRefPtr<Image> copiedImage(SourceDrawingBuffer) const; 131 PassRefPtr<Image> copiedImage(SourceDrawingBuffer) const;
132 void clearCopiedImage(); 132 void clearCopiedImage();
133 133
134 SecurityOrigin* securityOrigin() const; 134 SecurityOrigin* securityOrigin() const;
135 bool originClean() const; 135 bool originClean() const;
136 void setOriginTainted() { m_originClean = false; } 136 void setOriginTainted() { m_originClean = false; }
137 137
138 AffineTransform baseTransform() const; 138 AffineTransform baseTransform() const;
139 139
140 bool is3D() const; 140 bool is3D() const;
141 bool isAnimated2D() const;
141 142
142 bool hasImageBuffer() const { return m_imageBuffer; } 143 bool hasImageBuffer() const { return m_imageBuffer; }
143 void discardImageBuffer(); 144 void discardImageBuffer();
144 145
145 bool shouldAccelerate(const IntSize&) const; 146 bool shouldAccelerate(const IntSize&) const;
146 147
147 bool shouldBeDirectComposited() const; 148 bool shouldBeDirectComposited() const;
148 149
149 const AtomicString imageSourceURL() const override; 150 const AtomicString imageSourceURL() const override;
150 151
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 mutable bool m_didFailToCreateImageBuffer; 226 mutable bool m_didFailToCreateImageBuffer;
226 bool m_imageBufferIsClear; 227 bool m_imageBufferIsClear;
227 OwnPtr<ImageBuffer> m_imageBuffer; 228 OwnPtr<ImageBuffer> m_imageBuffer;
228 229
229 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). 230 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue).
230 }; 231 };
231 232
232 } // namespace blink 233 } // namespace blink
233 234
234 #endif // HTMLCanvasElement_h 235 #endif // HTMLCanvasElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698