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

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

Issue 1061203002: cc: Remove invalidation history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address vmpstr comments Created 5 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/recording_source.h ('k') | cc/test/fake_picture_pile.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 #include "cc/test/fake_content_layer_client.h" 9 #include "cc/test/fake_content_layer_client.h"
10 #include "cc/test/impl_side_painting_settings.h" 10 #include "cc/test/impl_side_painting_settings.h"
11 11
12 namespace base { 12 namespace base {
13 class WaitableEvent; 13 class WaitableEvent;
14 } 14 }
15 15
16 namespace cc { 16 namespace cc {
17 17
18 class FakePicturePile : public PicturePile { 18 class FakePicturePile : public PicturePile {
19 public: 19 public:
20 using PictureInfo = PicturePile::PictureInfo;
21 using PictureMapKey = PicturePile::PictureMapKey; 20 using PictureMapKey = PicturePile::PictureMapKey;
22 using PictureMap = PicturePile::PictureMap; 21 using PictureMap = PicturePile::PictureMap;
23 22
24 FakePicturePile(float min_contents_scale, const gfx::Size& tile_grid_size) 23 FakePicturePile(float min_contents_scale, const gfx::Size& tile_grid_size)
25 : PicturePile(min_contents_scale, tile_grid_size), 24 : PicturePile(min_contents_scale, tile_grid_size),
26 playback_allowed_event_(nullptr) {} 25 playback_allowed_event_(nullptr) {}
27 ~FakePicturePile() override {} 26 ~FakePicturePile() override {}
28 27
29 static scoped_ptr<FakePicturePile> CreateFilledPile( 28 static scoped_ptr<FakePicturePile> CreateFilledPile(
30 const gfx::Size& tile_size, 29 const gfx::Size& tile_size,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 private: 108 private:
110 base::WaitableEvent* playback_allowed_event_; 109 base::WaitableEvent* playback_allowed_event_;
111 110
112 FakeContentLayerClient client_; 111 FakeContentLayerClient client_;
113 SkPaint default_paint_; 112 SkPaint default_paint_;
114 }; 113 };
115 114
116 } // namespace cc 115 } // namespace cc
117 116
118 #endif // CC_TEST_FAKE_PICTURE_PILE_H_ 117 #endif // CC_TEST_FAKE_PICTURE_PILE_H_
OLDNEW
« no previous file with comments | « cc/resources/recording_source.h ('k') | cc/test/fake_picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698