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

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

Issue 2801313002: Remove MojoCompositorFrameSink::WillDrawSurface (Closed)
Patch Set: 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 25 matching lines...) Expand all
36 void dispatchFrame(RefPtr<StaticBitmapImage>, 36 void dispatchFrame(RefPtr<StaticBitmapImage>,
37 double commitStartTime, 37 double commitStartTime,
38 bool isWebGLSoftwareRendering = false) final; 38 bool isWebGLSoftwareRendering = false) final;
39 void reclaimResource(unsigned resourceId) final; 39 void reclaimResource(unsigned resourceId) 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 damageRect) 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 CommitGPUCanvasGPUCompositing = 0, 49 CommitGPUCanvasGPUCompositing = 0,
52 CommitGPUCanvasSoftwareCompositing = 1, 50 CommitGPUCanvasSoftwareCompositing = 1,
53 CommitSoftwareCanvasGPUCompositing = 2, 51 CommitSoftwareCanvasGPUCompositing = 2,
54 CommitSoftwareCanvasSoftwareCompositing = 3, 52 CommitSoftwareCanvasSoftwareCompositing = 3,
55 OffscreenCanvasCommitTypeCount, 53 OffscreenCanvasCommitTypeCount,
56 }; 54 };
57 55
(...skipping 28 matching lines...) Expand all
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698