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/resources/picture_pile_unittest.cc

Issue 645853008: Standardize usage of virtual/override/final in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted Created 6 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/resources/picture_pile_impl.h ('k') | cc/resources/pixel_buffer_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 <map> 5 #include <map>
6 #include <utility> 6 #include <utility>
7 7
8 #include "cc/resources/picture_pile.h" 8 #include "cc/resources/picture_pile.h"
9 #include "cc/test/fake_content_layer_client.h" 9 #include "cc/test/fake_content_layer_client.h"
10 #include "cc/test/fake_rendering_stats_instrumentation.h" 10 #include "cc/test/fake_rendering_stats_instrumentation.h"
(...skipping 15 matching lines...) Expand all
26 26
27 bool CanRasterLayerRect(const gfx::Rect& layer_rect) { 27 bool CanRasterLayerRect(const gfx::Rect& layer_rect) {
28 return CanRaster(1.f, layer_rect); 28 return CanRaster(1.f, layer_rect);
29 } 29 }
30 30
31 typedef PicturePile::PictureInfo PictureInfo; 31 typedef PicturePile::PictureInfo PictureInfo;
32 typedef PicturePile::PictureMapKey PictureMapKey; 32 typedef PicturePile::PictureMapKey PictureMapKey;
33 typedef PicturePile::PictureMap PictureMap; 33 typedef PicturePile::PictureMap PictureMap;
34 34
35 protected: 35 protected:
36 virtual ~TestPicturePile() {} 36 ~TestPicturePile() override {}
37 }; 37 };
38 38
39 class PicturePileTestBase { 39 class PicturePileTestBase {
40 public: 40 public:
41 PicturePileTestBase() 41 PicturePileTestBase()
42 : background_color_(SK_ColorBLUE), 42 : background_color_(SK_ColorBLUE),
43 min_scale_(0.125), 43 min_scale_(0.125),
44 frame_number_(0), 44 frame_number_(0),
45 contents_opaque_(false) {} 45 contents_opaque_(false) {}
46 46
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 client_.add_draw_rect(tiling_rect(), paint); 1429 client_.add_draw_rect(tiling_rect(), paint);
1430 client_.add_draw_rect(tiling_rect(), paint); 1430 client_.add_draw_rect(tiling_rect(), paint);
1431 client_.add_draw_rect(tiling_rect(), paint); 1431 client_.add_draw_rect(tiling_rect(), paint);
1432 Region invalidation5(tiling_rect()); 1432 Region invalidation5(tiling_rect());
1433 UpdateAndExpandInvalidation(&invalidation5, tiling_size(), tiling_rect()); 1433 UpdateAndExpandInvalidation(&invalidation5, tiling_size(), tiling_rect());
1434 EXPECT_FALSE(pile_->is_solid_color()); 1434 EXPECT_FALSE(pile_->is_solid_color());
1435 } 1435 }
1436 1436
1437 } // namespace 1437 } // namespace
1438 } // namespace cc 1438 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/picture_pile_impl.h ('k') | cc/resources/pixel_buffer_raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698