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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h

Issue 2455983005: Refactor AcceleratedStaticBitmapImage (Closed)
Patch Set: minor clean up Created 4 years, 1 month 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/gpu/DrawingBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
index 9acbaf3b2f3649d022e3d7930fa425bcb4e7bb3e..7daa5cc59c92f0e87709659caae26e3101afde25 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -44,6 +44,7 @@
#include "wtf/Noncopyable.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
+#include "wtf/WeakPtr.h"
#include <memory>
namespace cc {
@@ -515,6 +516,8 @@ class PLATFORM_EXPORT DrawingBuffer
// DisallowChromiumImage in the case of OffscreenCanvas.
ChromiumImageUsage m_chromiumImageUsage;
bool shouldUseChromiumImage();
+
+ WeakPtrFactory<DrawingBuffer> m_weakPtrFactory;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698