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

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

Issue 2584643002: Revamp OffscreenCanvas commit flow (Closed)
Patch Set: more fix Created 4 years 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 a85fb7eb92b5880f05a6f69e497a27b315d7b5ee..084fd9d68ee0b2399a8a4ecfa168cd0ca38dfb1f 100644
--- a/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
+++ b/third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h
@@ -9,6 +9,7 @@
#include "cc/output/begin_frame_args.h"
#include "cc/resources/shared_bitmap.h"
#include "cc/surfaces/surface_id.h"
+#include "cc/surfaces/surface_id_allocator.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "platform/graphics/OffscreenCanvasFrameDispatcher.h"
#include "platform/graphics/StaticBitmapImage.h"
@@ -24,9 +25,6 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
public:
OffscreenCanvasFrameDispatcherImpl(uint32_t clientId,
uint32_t sinkId,
- uint32_t localId,
- uint64_t nonceHigh,
- uint64_t nonceLow,
int canvasId,
int width,
int height);
@@ -56,8 +54,11 @@ class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
void reshape(int width, int height) override;
private:
+ // Surface-related
+ cc::SurfaceIdAllocator m_surfaceIdAllocator;
const cc::FrameSinkId m_frameSinkId;
cc::LocalFrameId m_currentLocalFrameId;
+
int m_width;
int m_height;

Powered by Google App Engine
This is Rietveld 408576698