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

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

Issue 666273002: cc: Added raster source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 years, 1 month 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
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 #include <set> 9 #include <set>
10 10
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 return layer_tree_impl()->tile_manager()->CreateTile( 626 return layer_tree_impl()->tile_manager()->CreateTile(
627 pile_.get(), 627 pile_.get(),
628 content_rect.size(), 628 content_rect.size(),
629 content_rect, 629 content_rect,
630 tiling->contents_scale(), 630 tiling->contents_scale(),
631 id(), 631 id(),
632 layer_tree_impl()->source_frame_number(), 632 layer_tree_impl()->source_frame_number(),
633 flags); 633 flags);
634 } 634 }
635 635
636 PicturePileImpl* PictureLayerImpl::GetPile() { 636 RasterSource* PictureLayerImpl::GetRasterSource() {
637 return pile_.get(); 637 return pile_.get();
638 } 638 }
639 639
640 const Region* PictureLayerImpl::GetPendingInvalidation() { 640 const Region* PictureLayerImpl::GetPendingInvalidation() {
641 if (layer_tree_impl()->IsPendingTree()) 641 if (layer_tree_impl()->IsPendingTree())
642 return &invalidation_; 642 return &invalidation_;
643 DCHECK(layer_tree_impl()->IsActiveTree()); 643 DCHECK(layer_tree_impl()->IsActiveTree());
644 if (PictureLayerImpl* twin_layer = GetTwinLayer()) 644 if (PictureLayerImpl* twin_layer = GetTwinLayer())
645 return &twin_layer->invalidation_; 645 return &twin_layer->invalidation_;
646 return nullptr; 646 return nullptr;
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1692 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); 1692 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange();
1693 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; 1693 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start;
1694 return tiling_range.end - 1 - current_tiling_range_offset; 1694 return tiling_range.end - 1 - current_tiling_range_offset;
1695 } 1695 }
1696 } 1696 }
1697 NOTREACHED(); 1697 NOTREACHED();
1698 return 0; 1698 return 0;
1699 } 1699 }
1700 1700
1701 } // namespace cc 1701 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698