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