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 CC_RESOURCE_UPDATE_CONTROLLER_H_ | 5 #ifndef CC_RESOURCE_UPDATE_CONTROLLER_H_ |
6 #define CC_RESOURCE_UPDATE_CONTROLLER_H_ | 6 #define CC_RESOURCE_UPDATE_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "cc/cc_export.h" | 12 #include "cc/cc_export.h" |
13 #include "cc/resource_update_queue.h" | 13 #include "cc/resource_update_queue.h" |
14 | 14 |
| 15 class GrContext; |
| 16 namespace WebKit { class WebGraphicsContext3D; } |
| 17 |
15 namespace cc { | 18 namespace cc { |
16 | 19 |
17 class ResourceProvider; | 20 class ResourceProvider; |
18 class Thread; | 21 class Thread; |
19 | 22 |
20 class ResourceUpdateControllerClient { | 23 class ResourceUpdateControllerClient { |
21 public: | 24 public: |
22 virtual void readyToFinalizeTextureUpdates() = 0; | 25 virtual void readyToFinalizeTextureUpdates() = 0; |
23 | 26 |
24 protected: | 27 protected: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 Thread* m_thread; | 77 Thread* m_thread; |
75 base::WeakPtrFactory<ResourceUpdateController> m_weakFactory; | 78 base::WeakPtrFactory<ResourceUpdateController> m_weakFactory; |
76 bool m_taskPosted; | 79 bool m_taskPosted; |
77 | 80 |
78 DISALLOW_COPY_AND_ASSIGN(ResourceUpdateController); | 81 DISALLOW_COPY_AND_ASSIGN(ResourceUpdateController); |
79 }; | 82 }; |
80 | 83 |
81 } // namespace cc | 84 } // namespace cc |
82 | 85 |
83 #endif // CC_RESOURCE_UPDATE_CONTROLLER_H_ | 86 #endif // CC_RESOURCE_UPDATE_CONTROLLER_H_ |
OLD | NEW |