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

Unified Diff: cc/texture_update_queue.cc

Issue 11270047: cc: Rename TextureUpdate to ResourceUpdate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort includes and forward declarations. Created 8 years, 2 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/texture_update_queue.h ('k') | cc/thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
-}
-
-}
« no previous file with comments | « cc/texture_update_queue.h ('k') | cc/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698