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

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

Issue 2391883004: Implement WebGL's commit with software compositing (Closed)
Patch Set: rebase Created 4 years, 2 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/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 12 matching lines...) Expand all
23 public: 23 public:
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>) override; 33 void dispatchFrame(RefPtr<StaticBitmapImage>,
34 bool isWebGLSoftwareRendering = false) override;
34 35
35 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation. 36 // cc::mojom::blink::MojoCompositorFrameSinkClient implementation.
36 void ReturnResources( 37 void ReturnResources(
37 Vector<cc::mojom::blink::ReturnedResourcePtr> resources) override; 38 Vector<cc::mojom::blink::ReturnedResourcePtr> resources) override;
38 39
39 private: 40 private:
40 const cc::SurfaceId m_surfaceId; 41 const cc::SurfaceId m_surfaceId;
41 const int m_width; 42 const int m_width;
42 const int m_height; 43 const int m_height;
43 44
(...skipping 11 matching lines...) Expand all
55 RefPtr<StaticBitmapImage>); 56 RefPtr<StaticBitmapImage>);
56 void setTransferableResourceMemoryToTexture(cc::TransferableResource&, 57 void setTransferableResourceMemoryToTexture(cc::TransferableResource&,
57 RefPtr<StaticBitmapImage>); 58 RefPtr<StaticBitmapImage>);
58 void setTransferableResourceInTexture(cc::TransferableResource&, 59 void setTransferableResourceInTexture(cc::TransferableResource&,
59 RefPtr<StaticBitmapImage>); 60 RefPtr<StaticBitmapImage>);
60 }; 61 };
61 62
62 } // namespace blink 63 } // namespace blink
63 64
64 #endif // OffscreenCanvasFrameDispatcherImpl_h 65 #endif // OffscreenCanvasFrameDispatcherImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698