| 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_RESOURCES_RESOURCE_UPDATE_CONTROLLER_H_ | 5 #ifndef CC_RESOURCES_RESOURCE_UPDATE_CONTROLLER_H_ |
| 6 #define CC_RESOURCES_RESOURCE_UPDATE_CONTROLLER_H_ | 6 #define CC_RESOURCES_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" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 ResourceUpdateControllerClient* client_; | 72 ResourceUpdateControllerClient* client_; |
| 73 scoped_ptr<ResourceUpdateQueue> queue_; | 73 scoped_ptr<ResourceUpdateQueue> queue_; |
| 74 bool contents_textures_purged_; | 74 bool contents_textures_purged_; |
| 75 ResourceProvider* resource_provider_; | 75 ResourceProvider* resource_provider_; |
| 76 base::TimeTicks time_limit_; | 76 base::TimeTicks time_limit_; |
| 77 size_t texture_updates_per_tick_; | 77 size_t texture_updates_per_tick_; |
| 78 bool first_update_attempt_; | 78 bool first_update_attempt_; |
| 79 base::SingleThreadTaskRunner* task_runner_; | 79 base::SingleThreadTaskRunner* task_runner_; |
| 80 bool task_posted_; | 80 bool task_posted_; |
| 81 bool ready_to_finalize_; |
| 81 base::WeakPtrFactory<ResourceUpdateController> weak_factory_; | 82 base::WeakPtrFactory<ResourceUpdateController> weak_factory_; |
| 82 | 83 |
| 83 DISALLOW_COPY_AND_ASSIGN(ResourceUpdateController); | 84 DISALLOW_COPY_AND_ASSIGN(ResourceUpdateController); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 } // namespace cc | 87 } // namespace cc |
| 87 | 88 |
| 88 #endif // CC_RESOURCES_RESOURCE_UPDATE_CONTROLLER_H_ | 89 #endif // CC_RESOURCES_RESOURCE_UPDATE_CONTROLLER_H_ |
| OLD | NEW |