OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 ThrottledTextureUploader_h | 5 #ifndef ThrottledTextureUploader_h |
6 #define ThrottledTextureUploader_h | 6 #define ThrottledTextureUploader_h |
7 | 7 |
8 #include "TextureUploader.h" | 8 #include "TextureUploader.h" |
9 | 9 |
10 #include <wtf/Deque.h> | 10 #include <wtf/Deque.h> |
11 | 11 |
12 namespace WebKit { | 12 namespace WebKit { |
13 class WebGraphicsContext3D; | 13 class WebGraphicsContext3D; |
14 } | 14 } |
15 | 15 |
16 namespace WebCore { | 16 namespace cc { |
17 | 17 |
18 class ThrottledTextureUploader : public TextureUploader { | 18 class ThrottledTextureUploader : public TextureUploader { |
19 WTF_MAKE_NONCOPYABLE(ThrottledTextureUploader); | 19 WTF_MAKE_NONCOPYABLE(ThrottledTextureUploader); |
20 public: | 20 public: |
21 static PassOwnPtr<ThrottledTextureUploader> create(WebKit::WebGraphicsContex
t3D* context) | 21 static PassOwnPtr<ThrottledTextureUploader> create(WebKit::WebGraphicsContex
t3D* context) |
22 { | 22 { |
23 return adoptPtr(new ThrottledTextureUploader(context)); | 23 return adoptPtr(new ThrottledTextureUploader(context)); |
24 } | 24 } |
25 static PassOwnPtr<ThrottledTextureUploader> create(WebKit::WebGraphicsContex
t3D* context, size_t pendingUploadLimit) | 25 static PassOwnPtr<ThrottledTextureUploader> create(WebKit::WebGraphicsContex
t3D* context, size_t pendingUploadLimit) |
26 { | 26 { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 WebKit::WebGraphicsContext3D* m_context; | 60 WebKit::WebGraphicsContext3D* m_context; |
61 size_t m_maxPendingQueries; | 61 size_t m_maxPendingQueries; |
62 Deque<OwnPtr<Query> > m_pendingQueries; | 62 Deque<OwnPtr<Query> > m_pendingQueries; |
63 Deque<OwnPtr<Query> > m_availableQueries; | 63 Deque<OwnPtr<Query> > m_availableQueries; |
64 }; | 64 }; |
65 | 65 |
66 } | 66 } |
67 | 67 |
68 #endif | 68 #endif |
OLD | NEW |