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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.h

Issue 2687073003: Make disabling 2d canvas GPU acceleration for getImageData less aggressive. (Closed)
Patch Set: Address comments Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
index 8e38810f63f7ed3e17e92cbd281fe7d9e1377f40..76b9ff4a1544084374ac9ef264a88bef3d4580ae 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.h
@@ -196,6 +196,9 @@ class PLATFORM_EXPORT ImageBuffer {
std::unique_ptr<ImageBufferSurface> m_surface;
ImageBufferClient* m_client;
+ mutable bool m_gpuReadbackInvokedInCurrentFrame;
+ int m_gpuReadbackSuccessiveFrames;
+
mutable intptr_t m_gpuMemoryUsage;
static intptr_t s_globalGPUMemoryUsage;
static unsigned s_globalAcceleratedImageBufferCount;

Powered by Google App Engine
This is Rietveld 408576698