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

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

Issue 2701663003: CompositorFrameSinkSupportClient::WillDraw needs to take in arguments (Closed)
Patch Set: c Created 3 years, 10 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 "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 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() final; 46 void WillDrawSurface(const cc::LocalSurfaceId&,
47 ::gfx::mojom::blink::RectPtr damageRect) final;
47 48
48 // This enum is used in histogram, so it should be append-only. 49 // This enum is used in histogram, so it should be append-only.
49 enum OffscreenCanvasCommitType { 50 enum OffscreenCanvasCommitType {
50 CommitGPUCanvasGPUCompositing = 0, 51 CommitGPUCanvasGPUCompositing = 0,
51 CommitGPUCanvasSoftwareCompositing = 1, 52 CommitGPUCanvasSoftwareCompositing = 1,
52 CommitSoftwareCanvasGPUCompositing = 2, 53 CommitSoftwareCanvasGPUCompositing = 2,
53 CommitSoftwareCanvasSoftwareCompositing = 3, 54 CommitSoftwareCanvasSoftwareCompositing = 3,
54 OffscreenCanvasCommitTypeCount, 55 OffscreenCanvasCommitTypeCount,
55 }; 56 };
56 57
(...skipping 26 matching lines...) Expand all
83 RefPtr<StaticBitmapImage>); 84 RefPtr<StaticBitmapImage>);
84 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, 85 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&,
85 RefPtr<StaticBitmapImage>); 86 RefPtr<StaticBitmapImage>);
86 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, 87 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&,
87 RefPtr<StaticBitmapImage>); 88 RefPtr<StaticBitmapImage>);
88 }; 89 };
89 90
90 } // namespace blink 91 } // namespace blink
91 92
92 #endif // OffscreenCanvasFrameDispatcherImpl_h 93 #endif // OffscreenCanvasFrameDispatcherImpl_h
OLDNEW
« no previous file with comments | « services/ui/ws/frame_generator.cc ('k') | third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698