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

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 1731373002: Allow to have a transparent UA dependent background. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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_LAYERS_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 float raster_source_scale_; 149 float raster_source_scale_;
150 float raster_contents_scale_; 150 float raster_contents_scale_;
151 float low_res_raster_contents_scale_; 151 float low_res_raster_contents_scale_;
152 152
153 bool was_screen_space_transform_animating_; 153 bool was_screen_space_transform_animating_;
154 bool only_used_low_res_last_append_quads_; 154 bool only_used_low_res_last_append_quads_;
155 const bool is_mask_; 155 const bool is_mask_;
156 156
157 bool nearest_neighbor_; 157 bool nearest_neighbor_;
158 158
159 bool has_alpha_channel_;
160
159 // Use this instead of |visible_layer_rect()| for tiling calculations. This 161 // Use this instead of |visible_layer_rect()| for tiling calculations. This
160 // takes external viewport and transform for tile priority into account. 162 // takes external viewport and transform for tile priority into account.
161 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; 163 gfx::Rect viewport_rect_for_tile_priority_in_content_space_;
162 164
163 gfx::Size gpu_raster_max_texture_size_; 165 gfx::Size gpu_raster_max_texture_size_;
164 166
165 // List of tilings that were used last time we appended quads. This can be 167 // List of tilings that were used last time we appended quads. This can be
166 // used as an optimization not to remove tilings if they are still being 168 // used as an optimization not to remove tilings if they are still being
167 // drawn. Note that accessing this vector should only be done in the context 169 // drawn. Note that accessing this vector should only be done in the context
168 // of comparing pointers, since objects pointed to are not guaranteed to 170 // of comparing pointers, since objects pointed to are not guaranteed to
169 // exist. 171 // exist.
170 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 172 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
171 173
172 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 174 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
173 }; 175 };
174 176
175 } // namespace cc 177 } // namespace cc
176 178
177 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 179 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698