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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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_layer_tree_host_impl.cc ('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"
(...skipping 16 matching lines...) Expand all
27 ~FakePicturePile() override {} 27 ~FakePicturePile() override {}
28 28
29 static scoped_ptr<FakePicturePile> CreateFilledPile( 29 static scoped_ptr<FakePicturePile> CreateFilledPile(
30 const gfx::Size& tile_size, 30 const gfx::Size& tile_size,
31 const gfx::Size& layer_bounds); 31 const gfx::Size& layer_bounds);
32 static scoped_ptr<FakePicturePile> CreateEmptyPile( 32 static scoped_ptr<FakePicturePile> CreateEmptyPile(
33 const gfx::Size& tile_size, 33 const gfx::Size& tile_size,
34 const gfx::Size& layer_bounds); 34 const gfx::Size& layer_bounds);
35 35
36 // PicturePile overrides. 36 // PicturePile overrides.
37 scoped_refptr<RasterSource> CreateRasterSource( 37 scoped_refptr<RasterSource> CreateRasterSource() const override;
38 bool can_use_lcd_text) const override;
39 38
40 using PicturePile::buffer_pixels; 39 using PicturePile::buffer_pixels;
41 using PicturePile::CanRasterSlowTileCheck; 40 using PicturePile::CanRasterSlowTileCheck;
42 using PicturePile::Clear; 41 using PicturePile::Clear;
43 using PicturePile::SetMinContentsScale; 42 using PicturePile::SetMinContentsScale;
44 using PicturePile::SetTileGridSize; 43 using PicturePile::SetTileGridSize;
45 44
46 PictureMap& picture_map() { return picture_map_; } 45 PictureMap& picture_map() { return picture_map_; }
47 const gfx::Rect& recorded_viewport() const { return recorded_viewport_; } 46 const gfx::Rect& recorded_viewport() const { return recorded_viewport_; }
48 47
(...skipping 60 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/test/fake_layer_tree_host_impl.cc ('k') | cc/test/fake_picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698