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

Unified Diff: cc/CCTextureUpdateQueue.cpp

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/CCTextureUpdateQueue.h ('k') | cc/CCThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCTextureUpdateQueue.cpp
diff --git a/cc/CCTextureUpdateQueue.cpp b/cc/CCTextureUpdateQueue.cpp
deleted file mode 100644
index b5ebdf56b2ea2154a4822252c875e56cc5e860bd..0000000000000000000000000000000000000000
--- a/cc/CCTextureUpdateQueue.cpp
+++ /dev/null
@@ -1,75 +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"
-
-#if USE(ACCELERATED_COMPOSITING)
-
-#include "CCTextureUpdateQueue.h"
-
-namespace cc {
-
-CCTextureUpdateQueue::CCTextureUpdateQueue()
-{
-}
-
-CCTextureUpdateQueue::~CCTextureUpdateQueue()
-{
-}
-
-void CCTextureUpdateQueue::appendFullUpload(TextureUploader::Parameters upload)
-{
- m_fullEntries.append(upload);
-}
-
-void CCTextureUpdateQueue::appendPartialUpload(TextureUploader::Parameters upload)
-{
- m_partialEntries.append(upload);
-}
-
-void CCTextureUpdateQueue::appendCopy(TextureCopier::Parameters copy)
-{
- m_copyEntries.append(copy);
-}
-
-void CCTextureUpdateQueue::clearUploadsToEvictedResources()
-{
- clearUploadsToEvictedResources(m_fullEntries);
- clearUploadsToEvictedResources(m_partialEntries);
-}
-
-void CCTextureUpdateQueue::clearUploadsToEvictedResources(Deque<TextureUploader::Parameters>& entryQueue)
-{
- Deque<TextureUploader::Parameters> temp;
- entryQueue.swap(temp);
- while (temp.size()) {
- TextureUploader::Parameters upload = temp.takeFirst();
- if (!upload.texture->backingResourceWasEvicted())
- entryQueue.append(upload);
- }
-}
-
-TextureUploader::Parameters CCTextureUpdateQueue::takeFirstFullUpload()
-{
- return m_fullEntries.takeFirst();
-}
-
-TextureUploader::Parameters CCTextureUpdateQueue::takeFirstPartialUpload()
-{
- return m_partialEntries.takeFirst();
-}
-
-TextureCopier::Parameters CCTextureUpdateQueue::takeFirstCopy()
-{
- return m_copyEntries.takeFirst();
-}
-
-bool CCTextureUpdateQueue::hasMoreUpdates() const
-{
- return m_fullEntries.size() || m_partialEntries.size() || m_copyEntries.size();
-}
-
-}
-
-#endif // USE(ACCELERATED_COMPOSITING)
« no previous file with comments | « cc/CCTextureUpdateQueue.h ('k') | cc/CCThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698