| 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/resources/shared_bitmap.h" | 9 #include "cc/resources/shared_bitmap.h" |
| 10 #include "cc/surfaces/surface_id.h" | 10 #include "cc/surfaces/surface_id.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 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 nonce, |
| 28 int width, | 28 int width, |
| 29 int height); | 29 int height); |
| 30 | 30 |
| 31 // OffscreenCanvasFrameDispatcher implementation. | 31 // OffscreenCanvasFrameDispatcher implementation. |
| 32 ~OffscreenCanvasFrameDispatcherImpl() override {} | 32 ~OffscreenCanvasFrameDispatcherImpl() override {} |
| 33 void dispatchFrame(RefPtr<StaticBitmapImage>, | 33 void dispatchFrame(RefPtr<StaticBitmapImage>, |
| 34 double commitStartTime, |
| 34 bool isWebGLSoftwareRendering = false) override; | 35 bool isWebGLSoftwareRendering = false) override; |
| 35 | 36 |
| 36 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation. | 37 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation. |
| 37 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 38 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 38 | 39 |
| 39 // This enum is used in histogram, so it should be append-only. | 40 // This enum is used in histogram, so it should be append-only. |
| 40 enum OffscreenCanvasCommitType { | 41 enum OffscreenCanvasCommitType { |
| 41 CommitGPUCanvasGPUCompositing = 0, | 42 CommitGPUCanvasGPUCompositing = 0, |
| 42 CommitGPUCanvasSoftwareCompositing = 1, | 43 CommitGPUCanvasSoftwareCompositing = 1, |
| 43 CommitSoftwareCanvasGPUCompositing = 2, | 44 CommitSoftwareCanvasGPUCompositing = 2, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 64 RefPtr<StaticBitmapImage>); | 65 RefPtr<StaticBitmapImage>); |
| 65 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, | 66 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, |
| 66 RefPtr<StaticBitmapImage>); | 67 RefPtr<StaticBitmapImage>); |
| 67 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, | 68 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, |
| 68 RefPtr<StaticBitmapImage>); | 69 RefPtr<StaticBitmapImage>); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace blink | 72 } // namespace blink |
| 72 | 73 |
| 73 #endif // OffscreenCanvasFrameDispatcherImpl_h | 74 #endif // OffscreenCanvasFrameDispatcherImpl_h |
| OLD | NEW |