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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.h

Issue 2294963002: Submit Compositor Frame from OffscreenCanvas on main (Closed)
Patch Set: Using Ref test fixes layout test problem Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef OffscreenCanvasFrameDispatcherImpl_h
6 #define OffscreenCanvasFrameDispatcherImpl_h
7
8 #include "base/memory/ref_counted.h"
9 #include "cc/output/compositor_frame.h"
Justin Novosad 2016/09/02 19:11:15 I think this include is only needed in the .cpp
xlai (Olivia) 2016/09/02 20:10:07 Done and also cleaned up other unnecessary include
10 #include "cc/surfaces/surface_id.h"
11 #include "platform/PlatformExport.h"
12 #include "platform/graphics/OffscreenCanvasFrameDispatcher.h"
13 #include "public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom -blink.h"
14 #include <memory>
15
16 namespace blink {
17
18 class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final : public Offscree nCanvasFrameDispatcher {
19 public:
20 explicit OffscreenCanvasFrameDispatcherImpl(uint32_t clientId, uint32_t loca lId, uint64_t nonce);
21 ~OffscreenCanvasFrameDispatcherImpl() override {}
22 const cc::SurfaceId& getSurfaceId() const { return m_surfaceId; }
danakj 2016/09/02 19:12:43 group this separate from overrides
xlai (Olivia) 2016/09/02 20:10:07 Hmmm...I realize that I don't need this trivial ge
23 void uploadImage(int width, int height) override;
danakj 2016/09/02 19:12:43 Group overrides together and put a comment on them
xlai (Olivia) 2016/09/02 20:10:07 Done.
24
25 private:
26 cc::SurfaceId m_surfaceId;
27 mojom::blink::OffscreenCanvasFrameReceiverPtr m_service;
28 };
29
30 } // namespace blink
31
32 #endif // OffscreenCanvasFrameDispatcherImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698