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

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

Issue 2379653006: Replaced cc::SurfaceId::nonce_ with base::UnguessableToken (Closed)
Patch Set: Changed SurfaceManager::kRootSurfaceId to a private field to avoid static initialization 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef OffscreenCanvasFrameDispatcherImpl_h 5 #ifndef OffscreenCanvasFrameDispatcherImpl_h
6 #define OffscreenCanvasFrameDispatcherImpl_h 6 #define OffscreenCanvasFrameDispatcherImpl_h
7 7
8 #include "cc/ipc/mojo_compositor_frame_sink.mojom-blink.h" 8 #include "cc/ipc/mojo_compositor_frame_sink.mojom-blink.h"
9 #include "cc/output/begin_frame_args.h" 9 #include "cc/output/begin_frame_args.h"
10 #include "cc/resources/shared_bitmap.h" 10 #include "cc/resources/shared_bitmap.h"
11 #include "cc/surfaces/surface_id.h" 11 #include "cc/surfaces/surface_id.h"
12 #include "mojo/public/cpp/bindings/binding.h" 12 #include "mojo/public/cpp/bindings/binding.h"
13 #include "platform/graphics/OffscreenCanvasFrameDispatcher.h" 13 #include "platform/graphics/OffscreenCanvasFrameDispatcher.h"
14 #include "platform/graphics/StaticBitmapImage.h" 14 #include "platform/graphics/StaticBitmapImage.h"
15 #include <memory> 15 #include <memory>
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final 19 class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final
20 : public OffscreenCanvasFrameDispatcher, 20 : public OffscreenCanvasFrameDispatcher,
21 WTF_NON_EXPORTED_BASE( 21 WTF_NON_EXPORTED_BASE(
22 public cc::mojom::blink::MojoCompositorFrameSinkClient) { 22 public cc::mojom::blink::MojoCompositorFrameSinkClient) {
23 public: 23 public:
24 OffscreenCanvasFrameDispatcherImpl(uint32_t clientId, 24 OffscreenCanvasFrameDispatcherImpl(uint32_t clientId,
25 uint32_t sinkId, 25 uint32_t sinkId,
26 uint32_t localId, 26 uint32_t localId,
27 uint64_t nonce, 27 uint64_t nonceHigh,
28 uint64_t nonceLow,
28 int width, 29 int width,
29 int height); 30 int height);
30 31
31 // OffscreenCanvasFrameDispatcher implementation. 32 // OffscreenCanvasFrameDispatcher implementation.
32 ~OffscreenCanvasFrameDispatcherImpl() override {} 33 ~OffscreenCanvasFrameDispatcherImpl() override {}
33 void dispatchFrame(RefPtr<StaticBitmapImage>, 34 void dispatchFrame(RefPtr<StaticBitmapImage>,
34 double commitStartTime, 35 double commitStartTime,
35 bool isWebGLSoftwareRendering = false) override; 36 bool isWebGLSoftwareRendering = false) override;
36 37
37 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation. 38 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation.
(...skipping 29 matching lines...) Expand all
67 RefPtr<StaticBitmapImage>); 68 RefPtr<StaticBitmapImage>);
68 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, 69 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&,
69 RefPtr<StaticBitmapImage>); 70 RefPtr<StaticBitmapImage>);
70 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, 71 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&,
71 RefPtr<StaticBitmapImage>); 72 RefPtr<StaticBitmapImage>);
72 }; 73 };
73 74
74 } // namespace blink 75 } // namespace blink
75 76
76 #endif // OffscreenCanvasFrameDispatcherImpl_h 77 #endif // OffscreenCanvasFrameDispatcherImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698