OLD | NEW |
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" |
(...skipping 24 matching lines...) Expand all Loading... |
35 ~OffscreenCanvasFrameDispatcherImpl() override {} | 35 ~OffscreenCanvasFrameDispatcherImpl() override {} |
36 void dispatchFrame(RefPtr<StaticBitmapImage>, | 36 void dispatchFrame(RefPtr<StaticBitmapImage>, |
37 double commitStartTime, | 37 double commitStartTime, |
38 bool isWebGLSoftwareRendering = false) override; | 38 bool isWebGLSoftwareRendering = false) override; |
39 void reclaimResource(unsigned resourceId) override; | 39 void reclaimResource(unsigned resourceId) override; |
40 | 40 |
41 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation. | 41 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation. |
42 void DidReceiveCompositorFrameAck() override; | 42 void DidReceiveCompositorFrameAck() override; |
43 void OnBeginFrame(const cc::BeginFrameArgs&) override; | 43 void OnBeginFrame(const cc::BeginFrameArgs&) override; |
44 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 44 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
| 45 void WillDrawSurface() {} |
45 | 46 |
46 // This enum is used in histogram, so it should be append-only. | 47 // This enum is used in histogram, so it should be append-only. |
47 enum OffscreenCanvasCommitType { | 48 enum OffscreenCanvasCommitType { |
48 CommitGPUCanvasGPUCompositing = 0, | 49 CommitGPUCanvasGPUCompositing = 0, |
49 CommitGPUCanvasSoftwareCompositing = 1, | 50 CommitGPUCanvasSoftwareCompositing = 1, |
50 CommitSoftwareCanvasGPUCompositing = 2, | 51 CommitSoftwareCanvasGPUCompositing = 2, |
51 CommitSoftwareCanvasSoftwareCompositing = 3, | 52 CommitSoftwareCanvasSoftwareCompositing = 3, |
52 OffscreenCanvasCommitTypeCount, | 53 OffscreenCanvasCommitTypeCount, |
53 }; | 54 }; |
54 | 55 |
(...skipping 22 matching lines...) Expand all Loading... |
77 RefPtr<StaticBitmapImage>); | 78 RefPtr<StaticBitmapImage>); |
78 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, | 79 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, |
79 RefPtr<StaticBitmapImage>); | 80 RefPtr<StaticBitmapImage>); |
80 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, | 81 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, |
81 RefPtr<StaticBitmapImage>); | 82 RefPtr<StaticBitmapImage>); |
82 }; | 83 }; |
83 | 84 |
84 } // namespace blink | 85 } // namespace blink |
85 | 86 |
86 #endif // OffscreenCanvasFrameDispatcherImpl_h | 87 #endif // OffscreenCanvasFrameDispatcherImpl_h |
OLD | NEW |