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

Side by Side Diff: cc/resource_update_queue.h

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/resource_update_controller_unittest.cc ('k') | cc/resource_update_queue.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_RESOURCE_UPDATE_QUEUE_H_
6 #define CC_RESOURCE_UPDATE_QUEUE_H_
7
8 #include <deque>
9 #include "base/basictypes.h"
10 #include "cc/base/cc_export.h"
11 #include "cc/output/texture_copier.h"
12 #include "cc/resource_update.h"
13
14 namespace cc {
15
16 class CC_EXPORT ResourceUpdateQueue {
17 public:
18 ResourceUpdateQueue();
19 virtual ~ResourceUpdateQueue();
20
21 void appendFullUpload(const ResourceUpdate&);
22 void appendPartialUpload(const ResourceUpdate&);
23 void appendCopy(TextureCopier::Parameters);
24
25 void clearUploadsToEvictedResources();
26
27 ResourceUpdate takeFirstFullUpload();
28 ResourceUpdate takeFirstPartialUpload();
29 TextureCopier::Parameters takeFirstCopy();
30
31 size_t fullUploadSize() const { return m_fullEntries.size(); }
32 size_t partialUploadSize() const { return m_partialEntries.size(); }
33 size_t copySize() const { return m_copyEntries.size(); }
34
35 bool hasMoreUpdates() const;
36
37 private:
38 void clearUploadsToEvictedResources(std::deque<ResourceUpdate>& entryQueue);
39 std::deque<ResourceUpdate> m_fullEntries;
40 std::deque<ResourceUpdate> m_partialEntries;
41 std::deque<TextureCopier::Parameters> m_copyEntries;
42
43 DISALLOW_COPY_AND_ASSIGN(ResourceUpdateQueue);
44 };
45
46 }
47
48 #endif // CC_RESOURCE_UPDATE_QUEUE_H_
OLDNEW
« no previous file with comments | « cc/resource_update_controller_unittest.cc ('k') | cc/resource_update_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698