OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 #include "cc/layers/layer.h" | 5 #include "cc/layers/layer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 return; | 623 return; |
624 non_fast_scrollable_region_ = region; | 624 non_fast_scrollable_region_ = region; |
625 SetNeedsCommit(); | 625 SetNeedsCommit(); |
626 } | 626 } |
627 | 627 |
628 void Layer::SetTouchEventHandlerRegion(const Region& region) { | 628 void Layer::SetTouchEventHandlerRegion(const Region& region) { |
629 DCHECK(IsPropertyChangeAllowed()); | 629 DCHECK(IsPropertyChangeAllowed()); |
630 if (touch_event_handler_region_ == region) | 630 if (touch_event_handler_region_ == region) |
631 return; | 631 return; |
632 touch_event_handler_region_ = region; | 632 touch_event_handler_region_ = region; |
| 633 SetNeedsCommit(); |
633 } | 634 } |
634 | 635 |
635 void Layer::SetDrawCheckerboardForMissingTiles(bool checkerboard) { | 636 void Layer::SetDrawCheckerboardForMissingTiles(bool checkerboard) { |
636 DCHECK(IsPropertyChangeAllowed()); | 637 DCHECK(IsPropertyChangeAllowed()); |
637 if (draw_checkerboard_for_missing_tiles_ == checkerboard) | 638 if (draw_checkerboard_for_missing_tiles_ == checkerboard) |
638 return; | 639 return; |
639 draw_checkerboard_for_missing_tiles_ = checkerboard; | 640 draw_checkerboard_for_missing_tiles_ = checkerboard; |
640 SetNeedsCommit(); | 641 SetNeedsCommit(); |
641 } | 642 } |
642 | 643 |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 | 984 |
984 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { | 985 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { |
985 return layer_tree_host_->rendering_stats_instrumentation(); | 986 return layer_tree_host_->rendering_stats_instrumentation(); |
986 } | 987 } |
987 | 988 |
988 bool Layer::SupportsLCDText() const { | 989 bool Layer::SupportsLCDText() const { |
989 return false; | 990 return false; |
990 } | 991 } |
991 | 992 |
992 } // namespace cc | 993 } // namespace cc |
OLD | NEW |