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

Unified 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: Changes based on feedbacks from danakj 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
index f208f37cd8c8b58d3b37059210374440d256c221..702e2de050ac7578158888f4d5032c5ffdea80c3 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
@@ -169,6 +169,7 @@ public:
static void registerRenderingContextFactory(PassOwnPtr<CanvasRenderingContextFactory>);
void updateExternallyAllocatedMemory() const;
+ static void updateTotalMemoryForAcceleratedCanvases(intptr_t diffFromCurrAllocatedMemory);
void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newStyle);
@@ -209,6 +210,7 @@ private:
FloatRect m_dirtyRect;
mutable intptr_t m_externallyAllocatedMemory;
+ static intptr_t s_totalMemoryForAcceleratedCanvases;
bool m_originClean;

Powered by Google App Engine
This is Rietveld 408576698