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

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

Issue 1482363004: Fixing laggy chrome on a multitude of accelerated canvases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving variables to ImageBuffer and Adding Unit Test Created 5 years 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 String toDataURLInternal(const String& mimeType, const double& quality, Sour ceDrawingBuffer) const; 202 String toDataURLInternal(const String& mimeType, const double& quality, Sour ceDrawingBuffer) const;
203 203
204 IntSize m_size; 204 IntSize m_size;
205 205
206 OwnPtrWillBeMember<CanvasRenderingContext> m_context; 206 OwnPtrWillBeMember<CanvasRenderingContext> m_context;
207 207
208 bool m_ignoreReset; 208 bool m_ignoreReset;
209 FloatRect m_dirtyRect; 209 FloatRect m_dirtyRect;
210 210
211 mutable intptr_t m_externallyAllocatedMemory; 211 mutable intptr_t m_externallyAllocatedMemory;
212
Justin Novosad 2015/12/08 22:15:27 No real changes to this file, please revert.
213 bool m_originClean; 212 bool m_originClean;
214 213
215 // It prevents HTMLCanvasElement::buffer() from continuously re-attempting t o allocate an imageBuffer 214 // It prevents HTMLCanvasElement::buffer() from continuously re-attempting t o allocate an imageBuffer
216 // after the first attempt failed. 215 // after the first attempt failed.
217 mutable bool m_didFailToCreateImageBuffer; 216 mutable bool m_didFailToCreateImageBuffer;
218 bool m_imageBufferIsClear; 217 bool m_imageBufferIsClear;
219 OwnPtr<ImageBuffer> m_imageBuffer; 218 OwnPtr<ImageBuffer> m_imageBuffer;
220 219
221 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). 220 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue).
222 }; 221 };
223 222
224 } // namespace blink 223 } // namespace blink
225 224
226 #endif // HTMLCanvasElement_h 225 #endif // HTMLCanvasElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698