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

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

Issue 1362663002: cc: Remove PicturePile and PicturePileImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update Created 5 years, 2 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_picture_layer_tiling_client.h ('k') | cc/test/fake_picture_pile.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 "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
10 #include "cc/test/fake_picture_pile_impl.h" 10 #include "cc/test/fake_display_list_raster_source.h"
11 #include "cc/test/fake_tile_manager.h" 11 #include "cc/test/fake_tile_manager.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 FakePictureLayerTilingClient::FakePictureLayerTilingClient() 15 FakePictureLayerTilingClient::FakePictureLayerTilingClient()
16 : tile_manager_(new FakeTileManager(&tile_manager_client_)), 16 : tile_manager_(new FakeTileManager(&tile_manager_client_)),
17 pile_(FakePicturePileImpl::CreateInfiniteFilledPile()), 17 raster_source_(FakeDisplayListRasterSource::CreateInfiniteFilled()),
18 twin_set_(nullptr), 18 twin_set_(nullptr),
19 twin_tiling_(nullptr), 19 twin_tiling_(nullptr),
20 has_valid_tile_priorities_(true) { 20 has_valid_tile_priorities_(true) {}
21 }
22 21
23 FakePictureLayerTilingClient::FakePictureLayerTilingClient( 22 FakePictureLayerTilingClient::FakePictureLayerTilingClient(
24 ResourceProvider* resource_provider) 23 ResourceProvider* resource_provider)
25 : resource_pool_( 24 : resource_pool_(
26 ResourcePool::Create(resource_provider, 25 ResourcePool::Create(resource_provider,
27 base::ThreadTaskRunnerHandle::Get().get(), 26 base::ThreadTaskRunnerHandle::Get().get(),
28 GL_TEXTURE_2D)), 27 GL_TEXTURE_2D)),
29 tile_manager_( 28 tile_manager_(
30 new FakeTileManager(&tile_manager_client_, resource_pool_.get())), 29 new FakeTileManager(&tile_manager_client_, resource_pool_.get())),
31 pile_(FakePicturePileImpl::CreateInfiniteFilledPile()), 30 raster_source_(FakeDisplayListRasterSource::CreateInfiniteFilled()),
32 twin_set_(nullptr), 31 twin_set_(nullptr),
33 twin_tiling_(nullptr), 32 twin_tiling_(nullptr),
34 has_valid_tile_priorities_(true) {} 33 has_valid_tile_priorities_(true) {}
35 34
36 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() { 35 FakePictureLayerTilingClient::~FakePictureLayerTilingClient() {
37 } 36 }
38 37
39 ScopedTilePtr FakePictureLayerTilingClient::CreateTile( 38 ScopedTilePtr FakePictureLayerTilingClient::CreateTile(
40 const Tile::CreateInfo& info) { 39 const Tile::CreateInfo& info) {
41 return tile_manager_->CreateTile(info, 0, 0, 0); 40 return tile_manager_->CreateTile(info, 0, 0, 0);
(...skipping 26 matching lines...) Expand all
68 return twin_set_->tiling_at(i); 67 return twin_set_->tiling_at(i);
69 } 68 }
70 return nullptr; 69 return nullptr;
71 } 70 }
72 71
73 bool FakePictureLayerTilingClient::RequiresHighResToDraw() const { 72 bool FakePictureLayerTilingClient::RequiresHighResToDraw() const {
74 return false; 73 return false;
75 } 74 }
76 75
77 } // namespace cc 76 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/test/fake_picture_pile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698