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

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

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: slightlylessstruct Created 5 years, 7 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
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 #ifndef CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ 5 #ifndef CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
6 #define CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ 6 #define CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "cc/playback/picture_pile_impl.h" 9 #include "cc/playback/picture_pile_impl.h"
10 #include "cc/test/fake_picture_pile.h" 10 #include "cc/test/fake_picture_pile.h"
(...skipping 29 matching lines...) Expand all
40 CreateEmptyPileThatThinksItHasRecordings(const gfx::Size& tile_size, 40 CreateEmptyPileThatThinksItHasRecordings(const gfx::Size& tile_size,
41 const gfx::Size& layer_bounds, 41 const gfx::Size& layer_bounds,
42 bool is_solid_color); 42 bool is_solid_color);
43 static scoped_refptr<FakePicturePileImpl> CreateInfiniteFilledPile(); 43 static scoped_refptr<FakePicturePileImpl> CreateInfiniteFilledPile();
44 static scoped_refptr<FakePicturePileImpl> CreateFromPile( 44 static scoped_refptr<FakePicturePileImpl> CreateFromPile(
45 const PicturePile* other, 45 const PicturePile* other,
46 base::WaitableEvent* playback_allowed_event); 46 base::WaitableEvent* playback_allowed_event);
47 47
48 // Hi-jack the PlaybackToCanvas method to delay its completion. 48 // Hi-jack the PlaybackToCanvas method to delay its completion.
49 void PlaybackToCanvas(SkCanvas* canvas, 49 void PlaybackToCanvas(SkCanvas* canvas,
50 const gfx::Rect& canvas_rect, 50 const gfx::Rect& canvas_bitmap_rect,
51 const gfx::Rect& canvas_playback_rect,
51 float contents_scale) const override; 52 float contents_scale) const override;
52 53
53 const TilingData& tiling() { return tiling_; } 54 const TilingData& tiling() { return tiling_; }
54 55
55 bool HasRecordingAt(int x, int y) const; 56 bool HasRecordingAt(int x, int y) const;
56 int num_tiles_x() const { return tiling_.num_tiles_x(); } 57 int num_tiles_x() const { return tiling_.num_tiles_x(); }
57 int num_tiles_y() const { return tiling_.num_tiles_y(); } 58 int num_tiles_y() const { return tiling_.num_tiles_y(); }
58 59
59 protected: 60 protected:
60 FakePicturePileImpl(); 61 FakePicturePileImpl();
61 FakePicturePileImpl(const PicturePile* other, 62 FakePicturePileImpl(const PicturePile* other,
62 base::WaitableEvent* playback_allowed_event); 63 base::WaitableEvent* playback_allowed_event);
63 ~FakePicturePileImpl() override; 64 ~FakePicturePileImpl() override;
64 65
65 base::WaitableEvent* playback_allowed_event_; 66 base::WaitableEvent* playback_allowed_event_;
66 gfx::Size tile_grid_size_; 67 gfx::Size tile_grid_size_;
67 }; 68 };
68 69
69 } // namespace cc 70 } // namespace cc
70 71
71 #endif // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ 72 #endif // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698