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

Unified Diff: cc/resources/raster_tile_priority_queue_required.h

Issue 863013004: cc: Split RasterTilePriorityQueue into required and all based on type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 5 years, 11 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/raster_tile_priority_queue_all.cc ('k') | cc/resources/raster_tile_priority_queue_required.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/raster_tile_priority_queue_required.h
diff --git a/cc/resources/raster_tile_priority_queue_required.h b/cc/resources/raster_tile_priority_queue_required.h
new file mode 100644
index 0000000000000000000000000000000000000000..08e7ccc47d16a9455f2293b016ff9719a82d1673
--- /dev/null
+++ b/cc/resources/raster_tile_priority_queue_required.h
@@ -0,0 +1,39 @@
+// Copyright 2015 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_RASTER_TILE_PRIORITY_QUEUE_REQUIRED_H_
+#define CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_REQUIRED_H_
+
+#include <vector>
+
+#include "cc/layers/picture_layer_impl.h"
+#include "cc/resources/raster_tile_priority_queue.h"
+#include "cc/resources/tiling_set_raster_queue.h"
+
+namespace cc {
+class Tile;
+
+class RasterTilePriorityQueueRequired : public RasterTilePriorityQueue {
+ public:
+ RasterTilePriorityQueueRequired();
+ ~RasterTilePriorityQueueRequired() override;
+
+ bool IsEmpty() const override;
+ Tile* Top() override;
+ void Pop() override;
+
+ private:
+ friend class RasterTilePriorityQueue;
+
+ void Build(const std::vector<PictureLayerImpl::Pair>& paired_layers,
+ Type type);
+
+ ScopedPtrVector<TilingSetRasterQueue> tiling_set_queues_;
+
+ DISALLOW_COPY_AND_ASSIGN(RasterTilePriorityQueueRequired);
+};
+
+} // namespace cc
+
+#endif // CC_RESOURCES_RASTER_TILE_PRIORITY_QUEUE_REQUIRED_H_
« no previous file with comments | « cc/resources/raster_tile_priority_queue_all.cc ('k') | cc/resources/raster_tile_priority_queue_required.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698