| 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 <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 25 matching lines...) Expand all Loading... |
| 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() final; |
| 44 void OnBeginFrame(const cc::BeginFrameArgs&) final; | 44 void OnBeginFrame(const cc::BeginFrameArgs&) final; |
| 45 void ReclaimResources(const cc::ReturnedResourceArray& resources) final; | 45 void ReclaimResources(const cc::ReturnedResourceArray& resources) final; |
| 46 void WillDrawSurface(const cc::LocalSurfaceId&, | |
| 47 ::gfx::mojom::blink::RectPtr damage_rect) final; | |
| 48 | 46 |
| 49 // 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. |
| 50 enum OffscreenCanvasCommitType { | 48 enum OffscreenCanvasCommitType { |
| 51 kCommitGPUCanvasGPUCompositing = 0, | 49 kCommitGPUCanvasGPUCompositing = 0, |
| 52 kCommitGPUCanvasSoftwareCompositing = 1, | 50 kCommitGPUCanvasSoftwareCompositing = 1, |
| 53 kCommitSoftwareCanvasGPUCompositing = 2, | 51 kCommitSoftwareCanvasGPUCompositing = 2, |
| 54 kCommitSoftwareCanvasSoftwareCompositing = 3, | 52 kCommitSoftwareCanvasSoftwareCompositing = 3, |
| 55 kOffscreenCanvasCommitTypeCount, | 53 kOffscreenCanvasCommitTypeCount, |
| 56 }; | 54 }; |
| 57 | 55 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 86 RefPtr<StaticBitmapImage>); | 84 RefPtr<StaticBitmapImage>); |
| 87 void SetTransferableResourceToSharedGPUContext(cc::TransferableResource&, | 85 void SetTransferableResourceToSharedGPUContext(cc::TransferableResource&, |
| 88 RefPtr<StaticBitmapImage>); | 86 RefPtr<StaticBitmapImage>); |
| 89 void SetTransferableResourceToStaticBitmapImage(cc::TransferableResource&, | 87 void SetTransferableResourceToStaticBitmapImage(cc::TransferableResource&, |
| 90 RefPtr<StaticBitmapImage>); | 88 RefPtr<StaticBitmapImage>); |
| 91 }; | 89 }; |
| 92 | 90 |
| 93 } // namespace blink | 91 } // namespace blink |
| 94 | 92 |
| 95 #endif // OffscreenCanvasFrameDispatcherImpl_h | 93 #endif // OffscreenCanvasFrameDispatcherImpl_h |
| OLD | NEW |