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

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

Issue 2396403002: Clean up logic flow in OffscreenCanvasFrameDispatcher (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/OffscreenCanvasFrameDispatcherImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698