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

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

Issue 2360413002: Implement OffscreenCanvas Unaccelerated 2d commit() on main thread (Closed)
Patch Set: fix Created 4 years, 3 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/OffscreenCanvasFrameDispatcherImpl.h
diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
index 52384bb356bd6bf02879d2079d66b16489dd8e4e..97bc78539f40efe586a01dc03e2af8f102337195 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
@@ -6,6 +6,7 @@
#define OffscreenCanvasFrameDispatcherImpl_h
#include "cc/ipc/mojo_compositor_frame_sink.mojom-blink.h"
+#include "cc/resources/shared_bitmap.h"
#include "cc/surfaces/surface_id.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "platform/graphics/OffscreenCanvasFrameDispatcher.h"
@@ -33,7 +34,9 @@ private:
const int m_height;
unsigned m_nextResourceId;
+ unsigned getNextResourceIdAndIncrement() { return m_nextResourceId++; }
HashMap<unsigned, RefPtr<StaticBitmapImage>> m_cachedImages;
+ HashMap<unsigned, std::unique_ptr<cc::SharedBitmap>> m_sharedBitmaps;
bool verifyImageSize(const sk_sp<SkImage>&);

Powered by Google App Engine
This is Rietveld 408576698