Index: cc/texture_update_queue.cc |
diff --git a/cc/texture_update_queue.cc b/cc/texture_update_queue.cc |
deleted file mode 100644 |
index 8dd992fc62b55dd91a35e76af35ee504f0ebbcfc..0000000000000000000000000000000000000000 |
--- a/cc/texture_update_queue.cc |
+++ /dev/null |
@@ -1,80 +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 "config.h" |
- |
-#include "cc/texture_update_queue.h" |
- |
-#include "cc/prioritized_texture.h" |
- |
-namespace cc { |
- |
-TextureUpdateQueue::TextureUpdateQueue() |
-{ |
-} |
- |
-TextureUpdateQueue::~TextureUpdateQueue() |
-{ |
-} |
- |
-void TextureUpdateQueue::appendFullUpload(const ResourceUpdate& upload) |
-{ |
- m_fullEntries.push_back(upload); |
-} |
- |
-void TextureUpdateQueue::appendPartialUpload(const ResourceUpdate& upload) |
-{ |
- m_partialEntries.push_back(upload); |
-} |
- |
-void TextureUpdateQueue::appendCopy(TextureCopier::Parameters copy) |
-{ |
- m_copyEntries.push_back(copy); |
-} |
- |
-void TextureUpdateQueue::clearUploadsToEvictedResources() |
-{ |
- clearUploadsToEvictedResources(m_fullEntries); |
- clearUploadsToEvictedResources(m_partialEntries); |
-} |
- |
-void TextureUpdateQueue::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 TextureUpdateQueue::takeFirstFullUpload() |
-{ |
- ResourceUpdate first = m_fullEntries.front(); |
- m_fullEntries.pop_front(); |
- return first; |
-} |
- |
-ResourceUpdate TextureUpdateQueue::takeFirstPartialUpload() |
-{ |
- ResourceUpdate first = m_partialEntries.front(); |
- m_partialEntries.pop_front(); |
- return first; |
-} |
- |
-TextureCopier::Parameters TextureUpdateQueue::takeFirstCopy() |
-{ |
- TextureCopier::Parameters first = m_copyEntries.front(); |
- m_copyEntries.pop_front(); |
- return first; |
-} |
- |
-bool TextureUpdateQueue::hasMoreUpdates() const |
-{ |
- return m_fullEntries.size() || m_partialEntries.size() || m_copyEntries.size(); |
-} |
- |
-} |