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

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

Issue 2026033002: cc: Remove can_use_lcd_text from draw properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/layers/draw_properties.cc ('k') | cc/layers/layer_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 303
304 DrawProperties& draw_properties() { return draw_properties_; } 304 DrawProperties& draw_properties() { return draw_properties_; }
305 const DrawProperties& draw_properties() const { return draw_properties_; } 305 const DrawProperties& draw_properties() const { return draw_properties_; }
306 306
307 gfx::Transform DrawTransform() const; 307 gfx::Transform DrawTransform() const;
308 gfx::Transform ScreenSpaceTransform() const; 308 gfx::Transform ScreenSpaceTransform() const;
309 PerformanceProperties<LayerImpl>& performance_properties() { 309 PerformanceProperties<LayerImpl>& performance_properties() {
310 return performance_properties_; 310 return performance_properties_;
311 } 311 }
312 312
313 bool CanUseLCDText() const;
314
313 // Setter for draw_properties_. 315 // Setter for draw_properties_.
314 void set_visible_layer_rect(const gfx::Rect& visible_rect) { 316 void set_visible_layer_rect(const gfx::Rect& visible_rect) {
315 draw_properties_.visible_layer_rect = visible_rect; 317 draw_properties_.visible_layer_rect = visible_rect;
316 } 318 }
317 void set_clip_rect(const gfx::Rect& clip_rect) { 319 void set_clip_rect(const gfx::Rect& clip_rect) {
318 draw_properties_.clip_rect = clip_rect; 320 draw_properties_.clip_rect = clip_rect;
319 } 321 }
320 322
321 // The following are shortcut accessors to get various information from 323 // The following are shortcut accessors to get various information from
322 // draw_properties_ 324 // draw_properties_
323 float draw_opacity() const { return draw_properties_.opacity; } 325 float draw_opacity() const { return draw_properties_.opacity; }
324 bool screen_space_transform_is_animating() const { 326 bool screen_space_transform_is_animating() const {
325 return draw_properties_.screen_space_transform_is_animating; 327 return draw_properties_.screen_space_transform_is_animating;
326 } 328 }
327 bool can_use_lcd_text() const { return draw_properties_.can_use_lcd_text; }
328 gfx::Rect clip_rect() const { return draw_properties_.clip_rect; } 329 gfx::Rect clip_rect() const { return draw_properties_.clip_rect; }
329 gfx::Rect drawable_content_rect() const { 330 gfx::Rect drawable_content_rect() const {
330 return draw_properties_.drawable_content_rect; 331 return draw_properties_.drawable_content_rect;
331 } 332 }
332 gfx::Rect visible_layer_rect() const { 333 gfx::Rect visible_layer_rect() const {
333 return draw_properties_.visible_layer_rect; 334 return draw_properties_.visible_layer_rect;
334 } 335 }
335 336
336 // The client should be responsible for setting bounds, content bounds and 337 // The client should be responsible for setting bounds, content bounds and
337 // contents scale to appropriate values. LayerImpl doesn't calculate any of 338 // contents scale to appropriate values. LayerImpl doesn't calculate any of
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 642
642 bool scrolls_drawn_descendant_; 643 bool scrolls_drawn_descendant_;
643 bool has_will_change_transform_hint_; 644 bool has_will_change_transform_hint_;
644 645
645 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 646 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
646 }; 647 };
647 648
648 } // namespace cc 649 } // namespace cc
649 650
650 #endif // CC_LAYERS_LAYER_IMPL_H_ 651 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/draw_properties.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698