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

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

Issue 565043002: cc: Remove the opaque rect return-parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentlayerclientopaque: build Created 6 years, 3 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.cc ('k') | cc/resources/skpicture_content_layer_updater.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <algorithm> 5 #include <algorithm>
6 #include <vector> 6 #include <vector>
7 7
8 #include "cc/resources/managed_tile_state.h" 8 #include "cc/resources/managed_tile_state.h"
9 #include "cc/resources/prioritized_tile_set.h" 9 #include "cc/resources/prioritized_tile_set.h"
10 #include "cc/resources/tile.h" 10 #include "cc/resources/tile.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 resource_provider_.get(), GL_TEXTURE_2D, RGBA_8888); 66 resource_provider_.get(), GL_TEXTURE_2D, RGBA_8888);
67 tile_manager_.reset( 67 tile_manager_.reset(
68 new FakeTileManager(&tile_manager_client_, resource_pool_.get())); 68 new FakeTileManager(&tile_manager_client_, resource_pool_.get()));
69 picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile(); 69 picture_pile_ = FakePicturePileImpl::CreateInfiniteFilledPile();
70 } 70 }
71 71
72 scoped_refptr<Tile> CreateTile() { 72 scoped_refptr<Tile> CreateTile() {
73 return tile_manager_->CreateTile(picture_pile_.get(), 73 return tile_manager_->CreateTile(picture_pile_.get(),
74 settings_.default_tile_size, 74 settings_.default_tile_size,
75 gfx::Rect(), 75 gfx::Rect(),
76 gfx::Rect(),
77 1.0, 76 1.0,
78 0, 77 0,
79 0, 78 0,
80 0); 79 0);
81 } 80 }
82 void ReleaseTiles(std::vector<scoped_refptr<Tile> >* tiles) { 81 void ReleaseTiles(std::vector<scoped_refptr<Tile> >* tiles) {
83 for (std::vector<scoped_refptr<Tile> >::iterator it = tiles->begin(); 82 for (std::vector<scoped_refptr<Tile> >::iterator it = tiles->begin();
84 it != tiles->end(); 83 it != tiles->end();
85 it++) { 84 it++) {
86 Tile* tile = it->get(); 85 Tile* tile = it->get();
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 765
767 set.Clear(); 766 set.Clear();
768 767
769 PrioritizedTileSet::Iterator empty_it(&set, true); 768 PrioritizedTileSet::Iterator empty_it(&set, true);
770 EXPECT_FALSE(empty_it); 769 EXPECT_FALSE(empty_it);
771 } 770 }
772 771
773 } // namespace 772 } // namespace
774 } // namespace cc 773 } // namespace cc
775 774
OLDNEW
« no previous file with comments | « cc/resources/picture.cc ('k') | cc/resources/skpicture_content_layer_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698