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

Side by Side Diff: cc/test/fake_picture_layer_tiling_client.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/test/fake_content_layer_client.cc ('k') | cc/test/solid_color_content_layer_client.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 <limits> 7 #include <limits>
8 8
9 #include "cc/test/fake_picture_pile_impl.h" 9 #include "cc/test/fake_picture_pile_impl.h"
10 #include "cc/test/fake_tile_manager.h" 10 #include "cc/test/fake_tile_manager.h"
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() { 39 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() {
40 } 40 }
41 41
42 scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile( 42 scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile(
43 PictureLayerTiling*, 43 PictureLayerTiling*,
44 const gfx::Rect& rect) { 44 const gfx::Rect& rect) {
45 if (!allow_create_tile_) 45 if (!allow_create_tile_)
46 return scoped_refptr<Tile>(); 46 return scoped_refptr<Tile>();
47 return tile_manager_->CreateTile( 47 return tile_manager_->CreateTile(pile_.get(), tile_size_, rect, 1, 0, 0, 0);
48 pile_.get(), tile_size_, rect, gfx::Rect(), 1, 0, 0, 0);
49 } 48 }
50 49
51 PicturePileImpl* FakePictureLayerTilingClient::GetPile() { 50 PicturePileImpl* FakePictureLayerTilingClient::GetPile() {
52 return pile_.get(); 51 return pile_.get();
53 } 52 }
54 53
55 void FakePictureLayerTilingClient::SetTileSize(const gfx::Size& tile_size) { 54 void FakePictureLayerTilingClient::SetTileSize(const gfx::Size& tile_size) {
56 tile_size_ = tile_size; 55 tile_size_ = tile_size;
57 } 56 }
58 57
(...skipping 27 matching lines...) Expand all
86 PictureLayerTiling* FakePictureLayerTilingClient::GetRecycledTwinTiling( 85 PictureLayerTiling* FakePictureLayerTilingClient::GetRecycledTwinTiling(
87 const PictureLayerTiling* tiling) { 86 const PictureLayerTiling* tiling) {
88 return recycled_twin_tiling_; 87 return recycled_twin_tiling_;
89 } 88 }
90 89
91 WhichTree FakePictureLayerTilingClient::GetTree() const { 90 WhichTree FakePictureLayerTilingClient::GetTree() const {
92 return tree_; 91 return tree_;
93 } 92 }
94 93
95 } // namespace cc 94 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_content_layer_client.cc ('k') | cc/test/solid_color_content_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698