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

Side by Side Diff: cc/test/fake_picture_pile.h

Issue 832963002: Revert of cc: Remove tile and scale specific code from raster source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/recording_source.h ('k') | cc/test/fake_picture_pile_impl.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_TEST_FAKE_PICTURE_PILE_H_ 5 #ifndef CC_TEST_FAKE_PICTURE_PILE_H_
6 #define CC_TEST_FAKE_PICTURE_PILE_H_ 6 #define CC_TEST_FAKE_PICTURE_PILE_H_
7 7
8 #include "cc/resources/picture_pile.h" 8 #include "cc/resources/picture_pile.h"
9 9
10 namespace base { 10 namespace base {
11 class WaitableEvent; 11 class WaitableEvent;
12 } 12 }
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class FakePicturePile : public PicturePile { 16 class FakePicturePile : public PicturePile {
17 public: 17 public:
18 using PictureInfo = PicturePile::PictureInfo; 18 using PictureInfo = PicturePile::PictureInfo;
19 using PictureMapKey = PicturePile::PictureMapKey; 19 using PictureMapKey = PicturePile::PictureMapKey;
20 using PictureMap = PicturePile::PictureMap; 20 using PictureMap = PicturePile::PictureMap;
21 21
22 FakePicturePile(float min_contents_scale, const gfx::Size& tile_grid_size) 22 FakePicturePile() : playback_allowed_event_(nullptr) {}
23 : PicturePile(min_contents_scale, tile_grid_size),
24 playback_allowed_event_(nullptr) {}
25 ~FakePicturePile() override {} 23 ~FakePicturePile() override {}
26 24
27 // PicturePile overrides. 25 // PicturePile overrides.
28 scoped_refptr<RasterSource> CreateRasterSource() const override; 26 scoped_refptr<RasterSource> CreateRasterSource() const override;
29 27
30 using PicturePile::buffer_pixels; 28 using PicturePile::buffer_pixels;
31 using PicturePile::CanRasterSlowTileCheck; 29 using PicturePile::CanRasterSlowTileCheck;
32 using PicturePile::Clear; 30 using PicturePile::Clear;
33 using PicturePile::SetMinContentsScale; 31 using PicturePile::SetMinContentsScale;
34 using PicturePile::SetTileGridSize; 32 using PicturePile::SetTileGridSize;
(...skipping 29 matching lines...) Expand all
64 62
65 void SetPixelRecordDistance(int d) { pixel_record_distance_ = d; } 63 void SetPixelRecordDistance(int d) { pixel_record_distance_ = d; }
66 64
67 private: 65 private:
68 base::WaitableEvent* playback_allowed_event_; 66 base::WaitableEvent* playback_allowed_event_;
69 }; 67 };
70 68
71 } // namespace cc 69 } // namespace cc
72 70
73 #endif // CC_TEST_FAKE_PICTURE_PILE_H_ 71 #endif // CC_TEST_FAKE_PICTURE_PILE_H_
OLDNEW
« no previous file with comments | « cc/resources/recording_source.h ('k') | cc/test/fake_picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698