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

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

Issue 2521013003: Compositing Layer update for OffscreenCanvas resize (Closed)
Patch Set: test 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/OffscreenCanvasFrameDispatcherImpl.h
diff --git a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
index e43b2c29730a7c42d38adf7487d475f9488361e0..d6444c423dbdfaa04d3f43c0b90efef7266dab24 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
@@ -27,8 +27,8 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
uint64_t nonceHigh,
uint64_t nonceLow,
int canvasId,
- int width,
- int height);
+ unsigned width,
+ unsigned height);
// OffscreenCanvasFrameDispatcher implementation.
~OffscreenCanvasFrameDispatcherImpl() override {}
@@ -51,10 +51,12 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
OffscreenCanvasCommitTypeCount,
};
+ void reshape(unsigned width, unsigned height) override;
+
private:
- const cc::SurfaceId m_surfaceId;
- const int m_width;
- const int m_height;
+ const cc::FrameSinkId m_frameSinkId;
+ int m_width;
+ int m_height;
unsigned m_nextResourceId;
HashMap<unsigned, RefPtr<StaticBitmapImage>> m_cachedImages;

Powered by Google App Engine
This is Rietveld 408576698