Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: cc/resources/resource_update_controller.h

Issue 190543012: cc: Don't call ReadyToFinalizeTextureUpdates multiple times (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/resources/resource_update_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/resource_update_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698