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/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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 private: | 51 private: |
52 const cc::SurfaceId m_surfaceId; | 52 const cc::SurfaceId m_surfaceId; |
53 const int m_width; | 53 const int m_width; |
54 const int m_height; | 54 const int m_height; |
55 | 55 |
56 unsigned m_nextResourceId; | 56 unsigned m_nextResourceId; |
57 HashMap<unsigned, RefPtr<StaticBitmapImage>> m_cachedImages; | 57 HashMap<unsigned, RefPtr<StaticBitmapImage>> m_cachedImages; |
58 HashMap<unsigned, std::unique_ptr<cc::SharedBitmap>> m_sharedBitmaps; | 58 HashMap<unsigned, std::unique_ptr<cc::SharedBitmap>> m_sharedBitmaps; |
59 HashMap<unsigned, GLuint> m_cachedTextureIds; | 59 HashMap<unsigned, GLuint> m_cachedTextureIds; |
60 | 60 |
61 bool verifyImageSize(const sk_sp<SkImage>&); | 61 bool verifyImageSize(const IntSize); |
62 | 62 |
63 cc::mojom::blink::MojoCompositorFrameSinkPtr m_sink; | 63 cc::mojom::blink::MojoCompositorFrameSinkPtr m_sink; |
64 mojo::Binding<cc::mojom::blink::MojoCompositorFrameSinkClient> m_binding; | 64 mojo::Binding<cc::mojom::blink::MojoCompositorFrameSinkClient> m_binding; |
65 | 65 |
66 void setTransferableResourceToSharedBitmap(cc::TransferableResource&, | 66 void setTransferableResourceToSharedBitmap(cc::TransferableResource&, |
67 RefPtr<StaticBitmapImage>); | 67 RefPtr<StaticBitmapImage>); |
68 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, | 68 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, |
69 RefPtr<StaticBitmapImage>); | 69 RefPtr<StaticBitmapImage>); |
70 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, | 70 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, |
71 RefPtr<StaticBitmapImage>); | 71 RefPtr<StaticBitmapImage>); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
75 | 75 |
76 #endif // OffscreenCanvasFrameDispatcherImpl_h | 76 #endif // OffscreenCanvasFrameDispatcherImpl_h |
OLD | NEW |