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

Unified Diff: cc/resources/tiling_set_raster_queue_required.h

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 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/tiling_set_raster_queue_all.cc ('k') | cc/resources/tiling_set_raster_queue_required.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tiling_set_raster_queue_required.h
diff --git a/cc/resources/tiling_set_raster_queue_required.h b/cc/resources/tiling_set_raster_queue_required.h
deleted file mode 100644
index 8cd01f6e1fcbcea08cd1c662bfd50c66bb8bb5b0..0000000000000000000000000000000000000000
--- a/cc/resources/tiling_set_raster_queue_required.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2014 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 CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
-#define CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
-
-#include "cc/base/cc_export.h"
-#include "cc/resources/picture_layer_tiling_set.h"
-#include "cc/resources/raster_tile_priority_queue.h"
-#include "cc/resources/tile.h"
-
-namespace cc {
-
-// This queue only returns tiles that are required for either activation or
-// draw, as specified by RasterTilePriorityQueue::Type passed in the
-// constructor.
-class CC_EXPORT TilingSetRasterQueueRequired {
- public:
- TilingSetRasterQueueRequired(PictureLayerTilingSet* tiling_set,
- RasterTilePriorityQueue::Type type);
- ~TilingSetRasterQueueRequired();
-
- const PrioritizedTile& Top() const;
- void Pop();
- bool IsEmpty() const;
-
- private:
- // This iterator will return all tiles that are in the NOW bin on the given
- // tiling. The queue can then use these tiles and further filter them based on
- // whether they are required or not.
- class TilingIterator {
- public:
- TilingIterator();
- explicit TilingIterator(PictureLayerTiling* tiling,
- TilingData* tiling_data,
- const gfx::Rect& rect);
- ~TilingIterator();
-
- bool done() const { return !current_tile_.tile(); }
- const PrioritizedTile& operator*() const { return current_tile_; }
- TilingIterator& operator++();
-
- private:
- PictureLayerTiling* tiling_;
- TilingData* tiling_data_;
-
- PrioritizedTile current_tile_;
- TilingData::Iterator visible_iterator_;
- };
-
- bool IsTileRequired(const PrioritizedTile& prioritized_tile) const;
-
- TilingIterator iterator_;
- RasterTilePriorityQueue::Type type_;
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_TILING_SET_RASTER_QUEUE_REQUIRED_H_
« no previous file with comments | « cc/resources/tiling_set_raster_queue_all.cc ('k') | cc/resources/tiling_set_raster_queue_required.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698