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

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

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed a signed vs. unsigned comparison in video_resource_updater.cc Created 7 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/prioritized_resource_unittest.cc ('k') | cc/resources/raster_worker_pool.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 }; 49 };
50 50
51 namespace { 51 namespace {
52 52
53 class PrioritizedTileSetTest : public testing::Test { 53 class PrioritizedTileSetTest : public testing::Test {
54 public: 54 public:
55 PrioritizedTileSetTest() { 55 PrioritizedTileSetTest() {
56 output_surface_ = FakeOutputSurface::Create3d().Pass(); 56 output_surface_ = FakeOutputSurface::Create3d().Pass();
57 CHECK(output_surface_->BindToClient(&output_surface_client_)); 57 CHECK(output_surface_->BindToClient(&output_surface_client_));
58 58
59 resource_provider_ = ResourceProvider::Create(output_surface_.get(), 59 resource_provider_ =
60 0).Pass(); 60 ResourceProvider::Create(output_surface_.get(), 0, false).Pass();
61 tile_manager_.reset(new FakeTileManager(&tile_manager_client_, 61 tile_manager_.reset(new FakeTileManager(&tile_manager_client_,
62 resource_provider_.get())); 62 resource_provider_.get()));
63 picture_pile_ = FakePicturePileImpl::CreatePile(); 63 picture_pile_ = FakePicturePileImpl::CreatePile();
64 } 64 }
65 65
66 scoped_refptr<Tile> CreateTile() { 66 scoped_refptr<Tile> CreateTile() {
67 return make_scoped_refptr(new Tile(tile_manager_.get(), 67 return make_scoped_refptr(new Tile(tile_manager_.get(),
68 picture_pile_.get(), 68 picture_pile_.get(),
69 settings_.default_tile_size, 69 settings_.default_tile_size,
70 gfx::Rect(), 70 gfx::Rect(),
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 718
719 set.Clear(); 719 set.Clear();
720 720
721 PrioritizedTileSet::Iterator empty_it(&set, true); 721 PrioritizedTileSet::Iterator empty_it(&set, true);
722 EXPECT_FALSE(empty_it); 722 EXPECT_FALSE(empty_it);
723 } 723 }
724 724
725 } // namespace 725 } // namespace
726 } // namespace cc 726 } // namespace cc
727 727
OLDNEW
« no previous file with comments | « cc/resources/prioritized_resource_unittest.cc ('k') | cc/resources/raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698