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

Side by Side Diff: cc/layers/picture_layer_impl.cc

Issue 406543003: cc: Change TileManager iterators to be queues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 28 matching lines...) Expand all
39 // Don't pre-rasterize on the GPU (except for kBackflingGuardDistancePixels in 39 // Don't pre-rasterize on the GPU (except for kBackflingGuardDistancePixels in
40 // TileManager::BinFromTilePriority). 40 // TileManager::BinFromTilePriority).
41 const float kGpuSkewportTargetTimeInFrames = 0.0f; 41 const float kGpuSkewportTargetTimeInFrames = 0.0f;
42 42
43 // Minimum width/height of a layer that would require analysis for tiles. 43 // Minimum width/height of a layer that would require analysis for tiles.
44 const int kMinDimensionsForAnalysis = 256; 44 const int kMinDimensionsForAnalysis = 256;
45 } // namespace 45 } // namespace
46 46
47 namespace cc { 47 namespace cc {
48 48
49 PairedPictureLayer::PairedPictureLayer()
50 : active_layer(NULL), pending_layer(NULL) {
51 }
52
53 PairedPictureLayer::~PairedPictureLayer() {
54 }
55
49 PictureLayerImpl::PictureLayerImpl(LayerTreeImpl* tree_impl, int id) 56 PictureLayerImpl::PictureLayerImpl(LayerTreeImpl* tree_impl, int id)
50 : LayerImpl(tree_impl, id), 57 : LayerImpl(tree_impl, id),
51 twin_layer_(NULL), 58 twin_layer_(NULL),
52 pile_(PicturePileImpl::Create()), 59 pile_(PicturePileImpl::Create()),
53 is_mask_(false), 60 is_mask_(false),
54 ideal_page_scale_(0.f), 61 ideal_page_scale_(0.f),
55 ideal_device_scale_(0.f), 62 ideal_device_scale_(0.f),
56 ideal_source_scale_(0.f), 63 ideal_source_scale_(0.f),
57 ideal_contents_scale_(0.f), 64 ideal_contents_scale_(0.f),
58 raster_page_scale_(0.f), 65 raster_page_scale_(0.f),
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 return iterator_index_ < iterators_.size(); 1642 return iterator_index_ < iterators_.size();
1636 } 1643 }
1637 1644
1638 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType( 1645 bool PictureLayerImpl::LayerEvictionTileIterator::IsCorrectType(
1639 PictureLayerTiling::TilingEvictionTileIterator* it) const { 1646 PictureLayerTiling::TilingEvictionTileIterator* it) const {
1640 return it->get_type() == iteration_stage_ && 1647 return it->get_type() == iteration_stage_ &&
1641 (**it)->required_for_activation() == required_for_activation_; 1648 (**it)->required_for_activation() == required_for_activation_;
1642 } 1649 }
1643 1650
1644 } // namespace cc 1651 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698