| 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 CCTextureUpdateController_h | 5 #ifndef CCTextureUpdateController_h |
| 6 #define CCTextureUpdateController_h | 6 #define CCTextureUpdateController_h |
| 7 | 7 |
| 8 #include "CCTimer.h" |
| 8 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/time.h" | 11 #include "base/time.h" |
| 11 #include "CCTextureUpdateQueue.h" | 12 #include "cc/texture_update_queue.h" |
| 12 #include "CCTimer.h" | |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| 15 | 15 |
| 16 class CCResourceProvider; | 16 class CCResourceProvider; |
| 17 | 17 |
| 18 class CCTextureUpdateControllerClient { | 18 class CCTextureUpdateControllerClient { |
| 19 public: | 19 public: |
| 20 virtual void readyToFinalizeTextureUpdates() = 0; | 20 virtual void readyToFinalizeTextureUpdates() = 0; |
| 21 | 21 |
| 22 protected: | 22 protected: |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 size_t m_textureUpdatesPerTick; | 69 size_t m_textureUpdatesPerTick; |
| 70 bool m_firstUpdateAttempt; | 70 bool m_firstUpdateAttempt; |
| 71 | 71 |
| 72 private: | 72 private: |
| 73 DISALLOW_COPY_AND_ASSIGN(CCTextureUpdateController); | 73 DISALLOW_COPY_AND_ASSIGN(CCTextureUpdateController); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace cc | 76 } // namespace cc |
| 77 | 77 |
| 78 #endif // CCTextureUpdateController_h | 78 #endif // CCTextureUpdateController_h |
| OLD | NEW |