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

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

Issue 13665003: cc: Moved contents_swizzled out of TileManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed unittest compile Created 7 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/resources/tile_manager.cc ('k') | no next file » | 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 namespace cc { 9 namespace cc {
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() { 37 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() {
38 } 38 }
39 39
40 scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile( 40 scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile(
41 PictureLayerTiling*, 41 PictureLayerTiling*,
42 gfx::Rect rect) { 42 gfx::Rect rect) {
43 return make_scoped_refptr(new Tile(&tile_manager_, 43 return make_scoped_refptr(new Tile(&tile_manager_,
44 pile_.get(), 44 pile_.get(),
45 tile_size_, 45 tile_size_,
46 GL_RGBA,
47 rect, 46 rect,
48 gfx::Rect(), 47 gfx::Rect(),
49 1, 48 1,
50 0)); 49 0));
51 } 50 }
52 51
53 void FakePictureLayerTilingClient::SetTileSize(gfx::Size tile_size) { 52 void FakePictureLayerTilingClient::SetTileSize(gfx::Size tile_size) {
54 tile_size_ = tile_size; 53 tile_size_ = tile_size;
55 } 54 }
56 55
57 gfx::Size FakePictureLayerTilingClient::CalculateTileSize( 56 gfx::Size FakePictureLayerTilingClient::CalculateTileSize(
58 gfx::Size /* current_tile_size */, 57 gfx::Size /* current_tile_size */,
59 gfx::Size /* content_bounds */) { 58 gfx::Size /* content_bounds */) {
60 return tile_size_; 59 return tile_size_;
61 } 60 }
62 61
63 } // namespace cc 62 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698