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

Side by Side Diff: cc/test/fake_picture_layer_tiling_client.cc

Issue 2566613002: [4/5] Add translated rasterization support for PictureLayerTilingSet & below (Closed)
Patch Set: still need that rebaseline Created 3 years, 8 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
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/tiles/picture_layer_tiling.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/fake_picture_layer_tiling_client.h" 5 #include "cc/test/fake_picture_layer_tiling_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const Region* FakePictureLayerTilingClient::GetPendingInvalidation() { 59 const Region* FakePictureLayerTilingClient::GetPendingInvalidation() {
60 return &invalidation_; 60 return &invalidation_;
61 } 61 }
62 62
63 const PictureLayerTiling* 63 const PictureLayerTiling*
64 FakePictureLayerTilingClient::GetPendingOrActiveTwinTiling( 64 FakePictureLayerTilingClient::GetPendingOrActiveTwinTiling(
65 const PictureLayerTiling* tiling) const { 65 const PictureLayerTiling* tiling) const {
66 if (!twin_set_) 66 if (!twin_set_)
67 return twin_tiling_; 67 return twin_tiling_;
68 for (size_t i = 0; i < twin_set_->num_tilings(); ++i) { 68 for (size_t i = 0; i < twin_set_->num_tilings(); ++i) {
69 if (twin_set_->tiling_at(i)->contents_scale() == tiling->contents_scale()) 69 if (twin_set_->tiling_at(i)->raster_transform() ==
70 tiling->raster_transform())
70 return twin_set_->tiling_at(i); 71 return twin_set_->tiling_at(i);
71 } 72 }
72 return nullptr; 73 return nullptr;
73 } 74 }
74 75
75 bool FakePictureLayerTilingClient::RequiresHighResToDraw() const { 76 bool FakePictureLayerTilingClient::RequiresHighResToDraw() const {
76 return false; 77 return false;
77 } 78 }
78 79
79 } // namespace cc 80 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/tiles/picture_layer_tiling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698