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

Unified Diff: cc/layers/layer.cc

Issue 1271843005: cc: Remove code for drawing checkerboard quads, it's not used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm-checkers: sizes Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index f4e46a873abeb2c41b21898543de5b25cedfdeec..480f2615c5759c29276c2fda32210f8b438451ef 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -74,7 +74,6 @@ Layer::Layer(const LayerSettings& settings)
double_sided_(true),
should_flatten_transform_(true),
use_parent_backface_visibility_(false),
- draw_checkerboard_for_missing_tiles_(false),
force_render_surface_(false),
transform_is_invertible_(true),
has_render_surface_(false),
@@ -1003,14 +1002,6 @@ void Layer::SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on) {
SetNeedsCommit();
}
-void Layer::SetDrawCheckerboardForMissingTiles(bool checkerboard) {
- DCHECK(IsPropertyChangeAllowed());
- if (draw_checkerboard_for_missing_tiles_ == checkerboard)
- return;
- draw_checkerboard_for_missing_tiles_ = checkerboard;
- SetNeedsCommit();
-}
-
void Layer::SetForceRenderSurface(bool force) {
DCHECK(IsPropertyChangeAllowed());
if (force_render_surface_ == force)
@@ -1196,8 +1187,6 @@ void Layer::PushPropertiesTo(LayerImpl* layer) {
layer->SetClipTreeIndex(clip_tree_index());
layer->set_offset_to_transform_parent(offset_to_transform_parent_);
layer->SetDoubleSided(double_sided_);
- layer->SetDrawCheckerboardForMissingTiles(
- draw_checkerboard_for_missing_tiles_);
layer->SetDrawsContent(DrawsContent());
layer->SetHideLayerAndSubtree(hide_layer_and_subtree_);
layer->SetHasRenderSurface(has_render_surface_);
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698