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

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

Issue 684543006: cc: Toggle LCD text at raster time instead of record time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcdraster: bettertestsyay Created 6 years, 1 month 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 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_RESOURCES_PICTURE_PILE_H_ 5 #ifndef CC_RESOURCES_PICTURE_PILE_H_
6 #define CC_RESOURCES_PICTURE_PILE_H_ 6 #define CC_RESOURCES_PICTURE_PILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "cc/resources/picture_pile_base.h" 9 #include "cc/resources/picture_pile_base.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 11 matching lines...) Expand all
22 // Re-record parts of the picture that are invalid. 22 // Re-record parts of the picture that are invalid.
23 // Invalidations are in layer space, and will be expanded to cover everything 23 // Invalidations are in layer space, and will be expanded to cover everything
24 // that was either recorded/changed or that has no recording, leaving out only 24 // that was either recorded/changed or that has no recording, leaving out only
25 // pieces that we had a recording for and it was not changed. 25 // pieces that we had a recording for and it was not changed.
26 // Return true iff the pile was modified. 26 // Return true iff the pile was modified.
27 bool UpdateAndExpandInvalidation(ContentLayerClient* painter, 27 bool UpdateAndExpandInvalidation(ContentLayerClient* painter,
28 Region* invalidation, 28 Region* invalidation,
29 SkColor background_color, 29 SkColor background_color,
30 bool contents_opaque, 30 bool contents_opaque,
31 bool contents_fill_bounds_completely, 31 bool contents_fill_bounds_completely,
32 bool can_use_lcd_text,
32 const gfx::Size& layer_size, 33 const gfx::Size& layer_size,
33 const gfx::Rect& visible_layer_rect, 34 const gfx::Rect& visible_layer_rect,
34 int frame_number, 35 int frame_number,
35 Picture::RecordingMode recording_mode); 36 Picture::RecordingMode recording_mode);
36 37
37 void SetEmptyBounds(); 38 void SetEmptyBounds();
38 39
39 void set_slow_down_raster_scale_factor(int factor) { 40 void set_slow_down_raster_scale_factor(int factor) {
40 slow_down_raster_scale_factor_for_debug_ = factor; 41 slow_down_raster_scale_factor_for_debug_ = factor;
41 } 42 }
(...skipping 23 matching lines...) Expand all
65 66
66 bool is_suitable_for_gpu_rasterization_; 67 bool is_suitable_for_gpu_rasterization_;
67 int pixel_record_distance_; 68 int pixel_record_distance_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(PicturePile); 70 DISALLOW_COPY_AND_ASSIGN(PicturePile);
70 }; 71 };
71 72
72 } // namespace cc 73 } // namespace cc
73 74
74 #endif // CC_RESOURCES_PICTURE_PILE_H_ 75 #endif // CC_RESOURCES_PICTURE_PILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698