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 |