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

Side by Side Diff: cc/layers/layer.cc

Issue 22891006: cc: Layer::SetTouchEventHandlerRegion should SetNeedsCommit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: toucheventhandlerregion: rebase Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layers/layer_unittest.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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698