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 | 5 |
6 #ifndef CCResourceProvider_h | 6 #ifndef CCResourceProvider_h |
7 #define CCResourceProvider_h | 7 #define CCResourceProvider_h |
8 | 8 |
9 #include "CCGraphicsContext.h" | 9 #include "CCGraphicsContext.h" |
10 #include "GraphicsContext3D.h" | 10 #include "GraphicsContext3D.h" |
11 #include "IntSize.h" | 11 #include "IntSize.h" |
12 #include "SkBitmap.h" | 12 #include "SkBitmap.h" |
13 #include "SkCanvas.h" | 13 #include "SkCanvas.h" |
14 #include <wtf/Deque.h> | 14 #include <wtf/Deque.h> |
15 #include <wtf/HashMap.h> | 15 #include <wtf/HashMap.h> |
16 #include <wtf/OwnPtr.h> | 16 #include <wtf/OwnPtr.h> |
17 #include <wtf/PassOwnPtr.h> | 17 #include <wtf/PassOwnPtr.h> |
18 #include <wtf/PassRefPtr.h> | 18 #include <wtf/PassRefPtr.h> |
19 #include <wtf/RefPtr.h> | 19 #include <wtf/RefPtr.h> |
20 #include <wtf/Vector.h> | 20 #include <wtf/Vector.h> |
21 | 21 |
22 namespace WebKit { | 22 namespace WebKit { |
23 class WebGraphicsContext3D; | 23 class WebGraphicsContext3D; |
24 } | 24 } |
25 | 25 |
26 namespace WebCore { | 26 namespace cc { |
27 | 27 |
28 class IntRect; | 28 class IntRect; |
29 class LayerTextureSubImage; | 29 class LayerTextureSubImage; |
30 | 30 |
31 // Thread-safety notes: this class is not thread-safe and can only be called | 31 // Thread-safety notes: this class is not thread-safe and can only be called |
32 // from the thread it was created on (in practice, the compositor thread). | 32 // from the thread it was created on (in practice, the compositor thread). |
33 class CCResourceProvider { | 33 class CCResourceProvider { |
34 WTF_MAKE_NONCOPYABLE(CCResourceProvider); | 34 WTF_MAKE_NONCOPYABLE(CCResourceProvider); |
35 public: | 35 public: |
36 typedef unsigned ResourceId; | 36 typedef unsigned ResourceId; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 bool m_useTextureStorageExt; | 280 bool m_useTextureStorageExt; |
281 bool m_useTextureUsageHint; | 281 bool m_useTextureUsageHint; |
282 bool m_useShallowFlush; | 282 bool m_useShallowFlush; |
283 OwnPtr<LayerTextureSubImage> m_texSubImage; | 283 OwnPtr<LayerTextureSubImage> m_texSubImage; |
284 int m_maxTextureSize; | 284 int m_maxTextureSize; |
285 }; | 285 }; |
286 | 286 |
287 } | 287 } |
288 | 288 |
289 #endif | 289 #endif |
OLD | NEW |