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

Unified Diff: cc/resource_update_queue.cc

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_queue.h ('k') | cc/resources/bitmap_content_layer_updater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_update_queue.cc
diff --git a/cc/resource_update_queue.cc b/cc/resource_update_queue.cc
deleted file mode 100644
index 14ecab0897b85344f936f42127ebe1798ca80630..0000000000000000000000000000000000000000
--- a/cc/resource_update_queue.cc
+++ /dev/null
@@ -1,78 +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.
-
-#include "cc/resource_update_queue.h"
-
-#include "cc/prioritized_resource.h"
-
-namespace cc {
-
-ResourceUpdateQueue::ResourceUpdateQueue()
-{
-}
-
-ResourceUpdateQueue::~ResourceUpdateQueue()
-{
-}
-
-void ResourceUpdateQueue::appendFullUpload(const ResourceUpdate& upload)
-{
- m_fullEntries.push_back(upload);
-}
-
-void ResourceUpdateQueue::appendPartialUpload(const ResourceUpdate& upload)
-{
- m_partialEntries.push_back(upload);
-}
-
-void ResourceUpdateQueue::appendCopy(TextureCopier::Parameters copy)
-{
- m_copyEntries.push_back(copy);
-}
-
-void ResourceUpdateQueue::clearUploadsToEvictedResources()
-{
- clearUploadsToEvictedResources(m_fullEntries);
- clearUploadsToEvictedResources(m_partialEntries);
-}
-
-void ResourceUpdateQueue::clearUploadsToEvictedResources(std::deque<ResourceUpdate>& entryQueue)
-{
- std::deque<ResourceUpdate> temp;
- entryQueue.swap(temp);
- while (temp.size()) {
- ResourceUpdate upload = temp.front();
- temp.pop_front();
- if (!upload.texture->backingResourceWasEvicted())
- entryQueue.push_back(upload);
- }
-}
-
-ResourceUpdate ResourceUpdateQueue::takeFirstFullUpload()
-{
- ResourceUpdate first = m_fullEntries.front();
- m_fullEntries.pop_front();
- return first;
-}
-
-ResourceUpdate ResourceUpdateQueue::takeFirstPartialUpload()
-{
- ResourceUpdate first = m_partialEntries.front();
- m_partialEntries.pop_front();
- return first;
-}
-
-TextureCopier::Parameters ResourceUpdateQueue::takeFirstCopy()
-{
- TextureCopier::Parameters first = m_copyEntries.front();
- m_copyEntries.pop_front();
- return first;
-}
-
-bool ResourceUpdateQueue::hasMoreUpdates() const
-{
- return m_fullEntries.size() || m_partialEntries.size() || m_copyEntries.size();
-}
-
-} // namespace cc
« no previous file with comments | « cc/resource_update_queue.h ('k') | cc/resources/bitmap_content_layer_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698