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

Unified Diff: cc/texture_update_queue.h

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/texture_update_controller.cc ('k') | cc/texture_update_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_update_queue.h
diff --git a/cc/texture_update_queue.h b/cc/texture_update_queue.h
index 638cbb270ce9b24689d5095baf174ade4f4d1a13..4cf29338bb038a336e30ddde67ccafc90435e7f5 100644
--- a/cc/texture_update_queue.h
+++ b/cc/texture_update_queue.h
@@ -1,3 +1,47 @@
// 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 CCTextureUpdateQueue_h
+#define CCTextureUpdateQueue_h
+
+#include "base/basictypes.h"
+#include "TextureCopier.h"
+#include "TextureUploader.h"
+#include <wtf/Deque.h>
+
+namespace cc {
+
+class CCTextureUpdateQueue {
+public:
+ CCTextureUpdateQueue();
+ virtual ~CCTextureUpdateQueue();
+
+ void appendFullUpload(TextureUploader::Parameters);
+ void appendPartialUpload(TextureUploader::Parameters);
+ void appendCopy(TextureCopier::Parameters);
+
+ void clearUploadsToEvictedResources();
+
+ TextureUploader::Parameters takeFirstFullUpload();
+ TextureUploader::Parameters 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(Deque<TextureUploader::Parameters>& entryQueue);
+ Deque<TextureUploader::Parameters> m_fullEntries;
+ Deque<TextureUploader::Parameters> m_partialEntries;
+ Deque<TextureCopier::Parameters> m_copyEntries;
+
+ DISALLOW_COPY_AND_ASSIGN(CCTextureUpdateQueue);
+};
+
+}
+
+#endif // CCTextureUpdateQueue_h
« no previous file with comments | « cc/texture_update_controller.cc ('k') | cc/texture_update_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698