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

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

Issue 61883006: Compositor thread plumbing for layout rectangle debug info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed reviewer comments. Created 7 years, 1 month 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 | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "cc/output/filter_operations.h" 26 #include "cc/output/filter_operations.h"
27 #include "cc/trees/occlusion_tracker.h" 27 #include "cc/trees/occlusion_tracker.h"
28 #include "skia/ext/refptr.h" 28 #include "skia/ext/refptr.h"
29 #include "third_party/skia/include/core/SkColor.h" 29 #include "third_party/skia/include/core/SkColor.h"
30 #include "third_party/skia/include/core/SkImageFilter.h" 30 #include "third_party/skia/include/core/SkImageFilter.h"
31 #include "third_party/skia/include/core/SkPicture.h" 31 #include "third_party/skia/include/core/SkPicture.h"
32 #include "ui/gfx/rect.h" 32 #include "ui/gfx/rect.h"
33 #include "ui/gfx/rect_f.h" 33 #include "ui/gfx/rect_f.h"
34 #include "ui/gfx/transform.h" 34 #include "ui/gfx/transform.h"
35 35
36 namespace base {
37 namespace debug {
38 class ConvertableToTraceFormat;
39 }
40 }
41
36 namespace gfx { 42 namespace gfx {
37 class BoxF; 43 class BoxF;
38 } 44 }
39 45
40 namespace cc { 46 namespace cc {
41 47
42 class Animation; 48 class Animation;
43 class AnimationDelegate; 49 class AnimationDelegate;
44 struct AnimationEvent; 50 struct AnimationEvent;
45 class CopyOutputRequest; 51 class CopyOutputRequest;
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 432
427 virtual bool SupportsLCDText() const; 433 virtual bool SupportsLCDText() const;
428 434
429 bool needs_push_properties() const { return needs_push_properties_; } 435 bool needs_push_properties() const { return needs_push_properties_; }
430 bool descendant_needs_push_properties() const { 436 bool descendant_needs_push_properties() const {
431 return num_dependents_need_push_properties_ > 0; 437 return num_dependents_need_push_properties_ > 0;
432 } 438 }
433 439
434 virtual void RunMicroBenchmark(MicroBenchmark* benchmark); 440 virtual void RunMicroBenchmark(MicroBenchmark* benchmark);
435 441
442 virtual void SetDebugInfo(base::debug::ConvertableToTraceFormat*);
enne (OOO) 2013/11/25 20:16:45 style nit: parameters should be named
chrishtr_gmail.com 2013/11/25 22:48:25 Done.
443
436 protected: 444 protected:
437 friend class LayerImpl; 445 friend class LayerImpl;
438 friend class TreeSynchronizer; 446 friend class TreeSynchronizer;
439 virtual ~Layer(); 447 virtual ~Layer();
440 448
441 Layer(); 449 Layer();
442 450
443 // These SetNeeds functions are in order of severity of update: 451 // These SetNeeds functions are in order of severity of update:
444 // 452 //
445 // Called when this layer has been modified in some way, but isn't sure 453 // Called when this layer has been modified in some way, but isn't sure
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 float raster_scale_; 590 float raster_scale_;
583 591
584 LayerClient* client_; 592 LayerClient* client_;
585 593
586 ScopedPtrVector<CopyOutputRequest> copy_requests_; 594 ScopedPtrVector<CopyOutputRequest> copy_requests_;
587 595
588 base::Closure did_scroll_callback_; 596 base::Closure did_scroll_callback_;
589 597
590 DrawProperties<Layer> draw_properties_; 598 DrawProperties<Layer> draw_properties_;
591 599
600 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
601
592 PaintProperties paint_properties_; 602 PaintProperties paint_properties_;
593 603
594 DISALLOW_COPY_AND_ASSIGN(Layer); 604 DISALLOW_COPY_AND_ASSIGN(Layer);
595 }; 605 };
596 606
597 } // namespace cc 607 } // namespace cc
598 608
599 #endif // CC_LAYERS_LAYER_H_ 609 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698