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

Side by Side Diff: cc/playback/picture_pile.h

Issue 1361663003: Revert of Cache gpu suitability in DisplayItemList, remove SetUnsuitable...ForTesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/playback/display_list_recording_source.cc ('k') | cc/playback/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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_PLAYBACK_PICTURE_PILE_H_ 5 #ifndef CC_PLAYBACK_PICTURE_PILE_H_
6 #define CC_PLAYBACK_PICTURE_PILE_H_ 6 #define CC_PLAYBACK_PICTURE_PILE_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 RecordingMode recording_mode) override; 31 RecordingMode recording_mode) override;
32 scoped_refptr<RasterSource> CreateRasterSource( 32 scoped_refptr<RasterSource> CreateRasterSource(
33 bool can_use_lcd_text) const override; 33 bool can_use_lcd_text) const override;
34 gfx::Size GetSize() const final; 34 gfx::Size GetSize() const final;
35 void SetEmptyBounds() override; 35 void SetEmptyBounds() override;
36 void SetSlowdownRasterScaleFactor(int factor) override; 36 void SetSlowdownRasterScaleFactor(int factor) override;
37 void SetGatherDiscardableImages(bool gather_images) override; 37 void SetGatherDiscardableImages(bool gather_images) override;
38 void SetBackgroundColor(SkColor background_color) override; 38 void SetBackgroundColor(SkColor background_color) override;
39 void SetRequiresClear(bool requires_clear) override; 39 void SetRequiresClear(bool requires_clear) override;
40 bool IsSuitableForGpuRasterization() const override; 40 bool IsSuitableForGpuRasterization() const override;
41 void SetUnsuitableForGpuRasterizationForTesting() override;
41 42
42 typedef std::pair<int, int> PictureMapKey; 43 typedef std::pair<int, int> PictureMapKey;
43 typedef base::hash_map<PictureMapKey, scoped_refptr<const Picture>> 44 typedef base::hash_map<PictureMapKey, scoped_refptr<const Picture>>
44 PictureMap; 45 PictureMap;
45 46
46 // An internal CanRaster check that goes to the picture_map rather than 47 // An internal CanRaster check that goes to the picture_map rather than
47 // using the recorded_viewport hint. 48 // using the recorded_viewport hint.
48 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const; 49 bool CanRasterSlowTileCheck(const gfx::Rect& layer_rect) const;
49 50
50 void Clear(); 51 void Clear();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void SetBufferPixels(int buffer_pixels); 97 void SetBufferPixels(int buffer_pixels);
97 98
98 bool is_suitable_for_gpu_rasterization_; 99 bool is_suitable_for_gpu_rasterization_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(PicturePile); 101 DISALLOW_COPY_AND_ASSIGN(PicturePile);
101 }; 102 };
102 103
103 } // namespace cc 104 } // namespace cc
104 105
105 #endif // CC_PLAYBACK_PICTURE_PILE_H_ 106 #endif // CC_PLAYBACK_PICTURE_PILE_H_
OLDNEW
« no previous file with comments | « cc/playback/display_list_recording_source.cc ('k') | cc/playback/picture_pile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698