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

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

Issue 2015433004: Add main thread scrolling reasons to GraphicsLayer::layerTreeAsJSON. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/input/main_thread_scrolling_reason.h ('k') | cc/layers/layer.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 #ifndef CC_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // TODO(chrishtr): Blink no longer resizes anything during paint. We can 334 // TODO(chrishtr): Blink no longer resizes anything during paint. We can
335 // remove this. 335 // remove this.
336 virtual void SavePaintProperties(); 336 virtual void SavePaintProperties();
337 // Returns true iff anything was updated that needs to be committed. 337 // Returns true iff anything was updated that needs to be committed.
338 virtual bool Update(); 338 virtual bool Update();
339 virtual void SetIsMask(bool is_mask) {} 339 virtual void SetIsMask(bool is_mask) {}
340 virtual bool IsSuitableForGpuRasterization() const; 340 virtual bool IsSuitableForGpuRasterization() const;
341 341
342 virtual std::unique_ptr<base::trace_event::ConvertableToTraceFormat> 342 virtual std::unique_ptr<base::trace_event::ConvertableToTraceFormat>
343 TakeDebugInfo(); 343 TakeDebugInfo();
344 virtual void didUpdateMainThreadScrollingReasons();
344 345
345 void SetLayerClient(LayerClient* client) { inputs_.client = client; } 346 void SetLayerClient(LayerClient* client) { inputs_.client = client; }
346 347
347 virtual void PushPropertiesTo(LayerImpl* layer); 348 virtual void PushPropertiesTo(LayerImpl* layer);
348 349
349 // Sets the type proto::LayerType that should be used for serialization 350 // Sets the type proto::LayerType that should be used for serialization
350 // of the current layer by calling LayerNode::set_type(proto::LayerType). 351 // of the current layer by calling LayerNode::set_type(proto::LayerType).
351 // TODO(nyquist): Start using a forward declared enum class when 352 // TODO(nyquist): Start using a forward declared enum class when
352 // https://github.com/google/protobuf/issues/67 has been fixed and rolled in. 353 // https://github.com/google/protobuf/issues/67 has been fixed and rolled in.
353 // This function would preferably instead return a proto::LayerType, but 354 // This function would preferably instead return a proto::LayerType, but
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 // These all act like draw properties, so don't need push properties. 719 // These all act like draw properties, so don't need push properties.
719 gfx::Rect visible_layer_rect_; 720 gfx::Rect visible_layer_rect_;
720 size_t num_unclipped_descendants_; 721 size_t num_unclipped_descendants_;
721 722
722 DISALLOW_COPY_AND_ASSIGN(Layer); 723 DISALLOW_COPY_AND_ASSIGN(Layer);
723 }; 724 };
724 725
725 } // namespace cc 726 } // namespace cc
726 727
727 #endif // CC_LAYERS_LAYER_H_ 728 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/input/main_thread_scrolling_reason.h ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698