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

Side by Side Diff: cc/resources/picture_layer_tiling_set.cc

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase 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 unified diff | Download patch
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('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/resources/picture_layer_tiling_set.h" 5 #include "cc/resources/picture_layer_tiling_set.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 } 365 }
366 return tiling_iter_.geometry_rect(); 366 return tiling_iter_.geometry_rect();
367 } 367 }
368 368
369 gfx::RectF PictureLayerTilingSet::CoverageIterator::texture_rect() const { 369 gfx::RectF PictureLayerTilingSet::CoverageIterator::texture_rect() const {
370 if (!tiling_iter_) 370 if (!tiling_iter_)
371 return gfx::RectF(); 371 return gfx::RectF();
372 return tiling_iter_.texture_rect(); 372 return tiling_iter_.texture_rect();
373 } 373 }
374 374
375 gfx::Size PictureLayerTilingSet::CoverageIterator::texture_size() const {
376 if (!tiling_iter_)
377 return gfx::Size();
378 return tiling_iter_.texture_size();
379 }
380
381 Tile* PictureLayerTilingSet::CoverageIterator::operator->() const { 375 Tile* PictureLayerTilingSet::CoverageIterator::operator->() const {
382 if (!tiling_iter_) 376 if (!tiling_iter_)
383 return NULL; 377 return NULL;
384 return *tiling_iter_; 378 return *tiling_iter_;
385 } 379 }
386 380
387 Tile* PictureLayerTilingSet::CoverageIterator::operator*() const { 381 Tile* PictureLayerTilingSet::CoverageIterator::operator*() const {
388 if (!tiling_iter_) 382 if (!tiling_iter_)
389 return NULL; 383 return NULL;
390 return *tiling_iter_; 384 return *tiling_iter_;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 case LOWER_THAN_LOW_RES: 536 case LOWER_THAN_LOW_RES:
543 range = TilingRange(low_res_range.end, tilings_.size()); 537 range = TilingRange(low_res_range.end, tilings_.size());
544 break; 538 break;
545 } 539 }
546 540
547 DCHECK_LE(range.start, range.end); 541 DCHECK_LE(range.start, range.end);
548 return range; 542 return range;
549 } 543 }
550 544
551 } // namespace cc 545 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/picture_layer_tiling_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698