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

Unified Diff: cc/resources/resource_update_queue.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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/resources/resource_update_queue.h ('k') | cc/resources/returned_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_update_queue.cc
diff --git a/cc/resources/resource_update_queue.cc b/cc/resources/resource_update_queue.cc
deleted file mode 100644
index 31727cd808c9d6cc370756cf63b20909fd2ffccc..0000000000000000000000000000000000000000
--- a/cc/resources/resource_update_queue.cc
+++ /dev/null
@@ -1,56 +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/resources/resource_update_queue.h"
-
-#include "cc/resources/prioritized_resource.h"
-
-namespace cc {
-
-ResourceUpdateQueue::ResourceUpdateQueue() {}
-
-ResourceUpdateQueue::~ResourceUpdateQueue() {}
-
-void ResourceUpdateQueue::AppendFullUpload(const ResourceUpdate& upload) {
- full_entries_.push_back(upload);
-}
-
-void ResourceUpdateQueue::AppendPartialUpload(const ResourceUpdate& upload) {
- partial_entries_.push_back(upload);
-}
-
-void ResourceUpdateQueue::ClearUploadsToEvictedResources() {
- ClearUploadsToEvictedResources(&full_entries_);
- ClearUploadsToEvictedResources(&partial_entries_);
-}
-
-void ResourceUpdateQueue::ClearUploadsToEvictedResources(
- std::deque<ResourceUpdate>* entry_queue) {
- std::deque<ResourceUpdate> temp;
- entry_queue->swap(temp);
- while (temp.size()) {
- ResourceUpdate upload = temp.front();
- temp.pop_front();
- if (!upload.texture->BackingResourceWasEvicted())
- entry_queue->push_back(upload);
- }
-}
-
-ResourceUpdate ResourceUpdateQueue::TakeFirstFullUpload() {
- ResourceUpdate first = full_entries_.front();
- full_entries_.pop_front();
- return first;
-}
-
-ResourceUpdate ResourceUpdateQueue::TakeFirstPartialUpload() {
- ResourceUpdate first = partial_entries_.front();
- partial_entries_.pop_front();
- return first;
-}
-
-bool ResourceUpdateQueue::HasMoreUpdates() const {
- return !full_entries_.empty() || !partial_entries_.empty();
-}
-
-} // namespace cc
« no previous file with comments | « cc/resources/resource_update_queue.h ('k') | cc/resources/returned_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698