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

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

Issue 2376743002: Implement commit for unaccelerated canvas with GPU compositing (Closed)
Patch Set: another minor cleanup 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..b91bed3ba6e16b83ab356e4ad2210644b8d013b7 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 setTransferableResourceCase1(cc::TransferableResource&,
Justin Novosad 2016/10/04 14:20:48 These function names have readability issues. You
xidachen 2016/10/04 14:43:06 Done.
+ RefPtr<StaticBitmapImage>);
+ void setTransferableResourceCase2(cc::TransferableResource&,
+ RefPtr<StaticBitmapImage>);
+ void setTransferableResourceCase3(cc::TransferableResource&,
+ RefPtr<StaticBitmapImage>);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698