| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 OffscreenCanvasCommitTypeCount, | 53 OffscreenCanvasCommitTypeCount, |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 // Surface-related | 57 // Surface-related |
| 58 cc::SurfaceIdAllocator m_surfaceIdAllocator; | 58 cc::SurfaceIdAllocator m_surfaceIdAllocator; |
| 59 void scheduleSyntheticBeginFrame(); // To be removed (crbug.com/674744) | 59 void scheduleSyntheticBeginFrame(); // To be removed (crbug.com/674744) |
| 60 | 60 |
| 61 TaskHandle m_syntheticBeginFrameTask; // To be removed (crbug.com/674744) | 61 TaskHandle m_syntheticBeginFrameTask; // To be removed (crbug.com/674744) |
| 62 const cc::FrameSinkId m_frameSinkId; | 62 const cc::FrameSinkId m_frameSinkId; |
| 63 cc::LocalFrameId m_currentLocalFrameId; | 63 cc::LocalSurfaceId m_currentLocalSurfaceId; |
| 64 | 64 |
| 65 int m_width; | 65 int m_width; |
| 66 int m_height; | 66 int m_height; |
| 67 bool m_changeSizeForNextCommit; | 67 bool m_changeSizeForNextCommit; |
| 68 | 68 |
| 69 unsigned m_nextResourceId; | 69 unsigned m_nextResourceId; |
| 70 HashMap<unsigned, RefPtr<StaticBitmapImage>> m_cachedImages; | 70 HashMap<unsigned, RefPtr<StaticBitmapImage>> m_cachedImages; |
| 71 HashMap<unsigned, std::unique_ptr<cc::SharedBitmap>> m_sharedBitmaps; | 71 HashMap<unsigned, std::unique_ptr<cc::SharedBitmap>> m_sharedBitmaps; |
| 72 HashMap<unsigned, GLuint> m_cachedTextureIds; | 72 HashMap<unsigned, GLuint> m_cachedTextureIds; |
| 73 HashSet<unsigned> m_spareResourceLocks; | 73 HashSet<unsigned> m_spareResourceLocks; |
| 74 | 74 |
| 75 bool verifyImageSize(const IntSize); | 75 bool verifyImageSize(const IntSize); |
| 76 | 76 |
| 77 cc::mojom::blink::MojoCompositorFrameSinkPtr m_sink; | 77 cc::mojom::blink::MojoCompositorFrameSinkPtr m_sink; |
| 78 mojo::Binding<cc::mojom::blink::MojoCompositorFrameSinkClient> m_binding; | 78 mojo::Binding<cc::mojom::blink::MojoCompositorFrameSinkClient> m_binding; |
| 79 | 79 |
| 80 int m_placeholderCanvasId; | 80 int m_placeholderCanvasId; |
| 81 | 81 |
| 82 void setTransferableResourceToSharedBitmap(cc::TransferableResource&, | 82 void setTransferableResourceToSharedBitmap(cc::TransferableResource&, |
| 83 RefPtr<StaticBitmapImage>); | 83 RefPtr<StaticBitmapImage>); |
| 84 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, | 84 void setTransferableResourceToSharedGPUContext(cc::TransferableResource&, |
| 85 RefPtr<StaticBitmapImage>); | 85 RefPtr<StaticBitmapImage>); |
| 86 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, | 86 void setTransferableResourceToStaticBitmapImage(cc::TransferableResource&, |
| 87 RefPtr<StaticBitmapImage>); | 87 RefPtr<StaticBitmapImage>); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| 91 | 91 |
| 92 #endif // OffscreenCanvasFrameDispatcherImpl_h | 92 #endif // OffscreenCanvasFrameDispatcherImpl_h |
| OLD | NEW |