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

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

Issue 2376743002: Implement commit for unaccelerated canvas with GPU compositing (Closed)
Patch Set: fix windbg compile error Created 4 years, 2 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 f7361dbcd2abf911029f9a400ca89688f91f26c1..2f0d7b145f82f352df24ef71cbd0ed4ab612a3f8 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
@@ -41,14 +41,21 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
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;
+ HashMap<unsigned, GLuint> m_cachedTextureIds;
bool verifyImageSize(const sk_sp<SkImage>&);
cc::mojom::blink::MojoCompositorFrameSinkPtr m_sink;
mojo::Binding<cc::mojom::blink::MojoCompositorFrameSinkClient> m_binding;
+
+ void setTransferableResourceInMemory(cc::TransferableResource&,
+ RefPtr<StaticBitmapImage>);
+ void setTransferableResourceMemoryToTexture(cc::TransferableResource&,
+ RefPtr<StaticBitmapImage>);
+ void setTransferableResourceInTexture(cc::TransferableResource&,
+ RefPtr<StaticBitmapImage>);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698