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

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

Issue 2720803002: Pass returned resources to DidReceiveCompositorFrameAck (Closed)
Patch Set: c Created 3 years, 8 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
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 <memory> 8 #include <memory>
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom-blink.h" 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom-blink.h"
10 #include "cc/output/begin_frame_args.h" 10 #include "cc/output/begin_frame_args.h"
(...skipping 22 matching lines...) Expand all
33 // OffscreenCanvasFrameDispatcher implementation. 33 // OffscreenCanvasFrameDispatcher implementation.
34 ~OffscreenCanvasFrameDispatcherImpl() final; 34 ~OffscreenCanvasFrameDispatcherImpl() final;
35 void SetNeedsBeginFrame(bool) final; 35 void SetNeedsBeginFrame(bool) final;
36 void DispatchFrame(RefPtr<StaticBitmapImage>, 36 void DispatchFrame(RefPtr<StaticBitmapImage>,
37 double commit_start_time, 37 double commit_start_time,
38 bool is_web_gl_software_rendering = false) final; 38 bool is_web_gl_software_rendering = false) final;
39 void ReclaimResource(unsigned resource_id) final; 39 void ReclaimResource(unsigned resource_id) final;
40 void Reshape(int width, int height) final; 40 void Reshape(int width, int height) final;
41 41
42 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation. 42 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation.
43 void DidReceiveCompositorFrameAck() final; 43 void DidReceiveCompositorFrameAck(
44 const cc::ReturnedResourceArray& resources) final;
44 void OnBeginFrame(const cc::BeginFrameArgs&) final; 45 void OnBeginFrame(const cc::BeginFrameArgs&) final;
45 void ReclaimResources(const cc::ReturnedResourceArray& resources) final; 46 void ReclaimResources(const cc::ReturnedResourceArray& resources) final;
46 47
47 // This enum is used in histogram, so it should be append-only. 48 // This enum is used in histogram, so it should be append-only.
48 enum OffscreenCanvasCommitType { 49 enum OffscreenCanvasCommitType {
49 kCommitGPUCanvasGPUCompositing = 0, 50 kCommitGPUCanvasGPUCompositing = 0,
50 kCommitGPUCanvasSoftwareCompositing = 1, 51 kCommitGPUCanvasSoftwareCompositing = 1,
51 kCommitSoftwareCanvasGPUCompositing = 2, 52 kCommitSoftwareCanvasGPUCompositing = 2,
52 kCommitSoftwareCanvasSoftwareCompositing = 3, 53 kCommitSoftwareCanvasSoftwareCompositing = 3,
53 kOffscreenCanvasCommitTypeCount, 54 kOffscreenCanvasCommitTypeCount,
(...skipping 30 matching lines...) Expand all
84 RefPtr<StaticBitmapImage>); 85 RefPtr<StaticBitmapImage>);
85 void SetTransferableResourceToSharedGPUContext(cc::TransferableResource&, 86 void SetTransferableResourceToSharedGPUContext(cc::TransferableResource&,
86 RefPtr<StaticBitmapImage>); 87 RefPtr<StaticBitmapImage>);
87 void SetTransferableResourceToStaticBitmapImage(cc::TransferableResource&, 88 void SetTransferableResourceToStaticBitmapImage(cc::TransferableResource&,
88 RefPtr<StaticBitmapImage>); 89 RefPtr<StaticBitmapImage>);
89 }; 90 };
90 91
91 } // namespace blink 92 } // namespace blink
92 93
93 #endif // OffscreenCanvasFrameDispatcherImpl_h 94 #endif // OffscreenCanvasFrameDispatcherImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698