OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef TextureHolder_h | |
6 #define TextureHolder_h | |
7 | |
8 #include "gpu/command_buffer/common/mailbox.h" | |
9 #include "gpu/command_buffer/common/sync_token.h" | |
10 #include "platform/PlatformExport.h" | |
11 #include "platform/geometry/IntSize.h" | |
12 #include "third_party/skia/include/core/SkImage.h" | |
13 #include "third_party/skia/include/core/SkRefCnt.h" | |
14 | |
15 namespace blink { | |
16 | |
17 class WebThread; | |
18 | |
19 class PLATFORM_EXPORT TextureHolder { | |
Justin Novosad
2016/10/28 21:58:41
There are many methods in this interface that are
| |
20 public: | |
21 virtual ~TextureHolder() {} | |
22 | |
23 virtual bool isSkiaTextureHolder() = 0; | |
24 virtual unsigned sharedContextId() = 0; | |
25 virtual gpu::Mailbox getMailbox() = 0; | |
Justin Novosad
2016/10/28 21:58:41
In blink we don't usually put "get" (or any other
| |
26 virtual gpu::SyncToken getSyncToken() = 0; | |
27 virtual IntSize getMailboxSize() = 0; | |
28 virtual void releaseImageThreadSafe() = 0; | |
29 virtual sk_sp<SkImage> getSkImage() = 0; | |
30 virtual WebThread* getImageThread() = 0; | |
31 virtual IntSize size() const = 0; | |
32 | |
33 virtual void setSharedContextId(unsigned) = 0; | |
34 virtual void setImageThread(WebThread*) = 0; | |
35 virtual void updateSyncToken(gpu::SyncToken) = 0; | |
36 }; | |
37 | |
38 } // namespace blink | |
39 | |
40 #endif // TextureHolder_h | |
OLD | NEW |