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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resource_update_controller_unittest.cc ('k') | cc/resource_update_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_update_queue.h
diff --git a/cc/resource_update_queue.h b/cc/resource_update_queue.h
deleted file mode 100644
index b172a075049c0c624267e1ad17fdd9e40aaf6935..0000000000000000000000000000000000000000
--- a/cc/resource_update_queue.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_RESOURCE_UPDATE_QUEUE_H_
-#define CC_RESOURCE_UPDATE_QUEUE_H_
-
-#include <deque>
-#include "base/basictypes.h"
-#include "cc/base/cc_export.h"
-#include "cc/output/texture_copier.h"
-#include "cc/resource_update.h"
-
-namespace cc {
-
-class CC_EXPORT ResourceUpdateQueue {
-public:
- ResourceUpdateQueue();
- virtual ~ResourceUpdateQueue();
-
- void appendFullUpload(const ResourceUpdate&);
- void appendPartialUpload(const ResourceUpdate&);
- void appendCopy(TextureCopier::Parameters);
-
- void clearUploadsToEvictedResources();
-
- ResourceUpdate takeFirstFullUpload();
- ResourceUpdate takeFirstPartialUpload();
- TextureCopier::Parameters takeFirstCopy();
-
- size_t fullUploadSize() const { return m_fullEntries.size(); }
- size_t partialUploadSize() const { return m_partialEntries.size(); }
- size_t copySize() const { return m_copyEntries.size(); }
-
- bool hasMoreUpdates() const;
-
-private:
- void clearUploadsToEvictedResources(std::deque<ResourceUpdate>& entryQueue);
- std::deque<ResourceUpdate> m_fullEntries;
- std::deque<ResourceUpdate> m_partialEntries;
- std::deque<TextureCopier::Parameters> m_copyEntries;
-
- DISALLOW_COPY_AND_ASSIGN(ResourceUpdateQueue);
-};
-
-}
-
-#endif // CC_RESOURCE_UPDATE_QUEUE_H_
« 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