| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 unsigned m_nextResourceId; | 45 unsigned m_nextResourceId; |
| 46 HashMap<unsigned, RefPtr<StaticBitmapImage>> m_cachedImages; | 46 HashMap<unsigned, RefPtr<StaticBitmapImage>> m_cachedImages; |
| 47 HashMap<unsigned, std::unique_ptr<cc::SharedBitmap>> m_sharedBitmaps; | 47 HashMap<unsigned, std::unique_ptr<cc::SharedBitmap>> m_sharedBitmaps; |
| 48 HashMap<unsigned, GLuint> m_cachedTextureIds; | 48 HashMap<unsigned, GLuint> m_cachedTextureIds; |
| 49 | 49 |
| 50 bool verifyImageSize(const sk_sp<SkImage>&); | 50 bool verifyImageSize(const sk_sp<SkImage>&); |
| 51 | 51 |
| 52 cc::mojom::blink::MojoCompositorFrameSinkPtr m_sink; | 52 cc::mojom::blink::MojoCompositorFrameSinkPtr m_sink; |
| 53 mojo::Binding<cc::mojom::blink::MojoCompositorFrameSinkClient> m_binding; | 53 mojo::Binding<cc::mojom::blink::MojoCompositorFrameSinkClient> m_binding; |
| 54 | 54 |
| 55 void setTransferableResourceInMemory(cc::TransferableResource&, | 55 void setTransferableResourceToSharedBitmap(cc::TransferableResource&, |
| 56 RefPtr<StaticBitmapImage>); | 56 RefPtr<StaticBitmapImage>); |
| 57 void setTransferableResourceMemoryToTexture(cc::TransferableResource&, | 57 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, |
| 58 RefPtr<StaticBitmapImage>); | 58 RefPtr<StaticBitmapImage>); |
| 59 void setTransferableResourceInTexture(cc::TransferableResource&, | 59 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, |
| 60 RefPtr<StaticBitmapImage>); | 60 RefPtr<StaticBitmapImage>); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // OffscreenCanvasFrameDispatcherImpl_h | 65 #endif // OffscreenCanvasFrameDispatcherImpl_h |
| OLD | NEW |