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

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

Issue 61883006: Compositor thread plumbing for layout rectangle debug info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO, fixed nits. Created 7 years 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/layers/layer_client.h ('k') | cc/layers/layer_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 #include "cc/resources/resource_provider.h" 28 #include "cc/resources/resource_provider.h"
29 #include "skia/ext/refptr.h" 29 #include "skia/ext/refptr.h"
30 #include "third_party/skia/include/core/SkColor.h" 30 #include "third_party/skia/include/core/SkColor.h"
31 #include "third_party/skia/include/core/SkImageFilter.h" 31 #include "third_party/skia/include/core/SkImageFilter.h"
32 #include "third_party/skia/include/core/SkPicture.h" 32 #include "third_party/skia/include/core/SkPicture.h"
33 #include "ui/gfx/rect.h" 33 #include "ui/gfx/rect.h"
34 #include "ui/gfx/rect_f.h" 34 #include "ui/gfx/rect_f.h"
35 #include "ui/gfx/transform.h" 35 #include "ui/gfx/transform.h"
36 36
37 namespace base { 37 namespace base {
38 namespace debug {
39 class ConvertableToTraceFormat;
40 }
41
38 class DictionaryValue; 42 class DictionaryValue;
39 } 43 }
40 44
41 namespace cc { 45 namespace cc {
42 46
43 class LayerTreeHostImpl; 47 class LayerTreeHostImpl;
44 class LayerTreeImpl; 48 class LayerTreeImpl;
45 class MicroBenchmarkImpl; 49 class MicroBenchmarkImpl;
46 class QuadSink; 50 class QuadSink;
47 class Renderer; 51 class Renderer;
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 502
499 scoped_ptr<base::Value> AsValue() const; 503 scoped_ptr<base::Value> AsValue() const;
500 virtual size_t GPUMemoryUsageInBytes() const; 504 virtual size_t GPUMemoryUsageInBytes() const;
501 505
502 // TODO(danakj): Be true only if needed. crbug.com/259511 506 // TODO(danakj): Be true only if needed. crbug.com/259511
503 bool needs_push_properties() const { return true; } 507 bool needs_push_properties() const { return true; }
504 bool descendant_needs_push_properties() const { return true; } 508 bool descendant_needs_push_properties() const { return true; }
505 509
506 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); 510 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark);
507 511
512 virtual void SetDebugInfo(
513 scoped_refptr<base::debug::ConvertableToTraceFormat> other);
514
508 protected: 515 protected:
509 LayerImpl(LayerTreeImpl* layer_impl, int id); 516 LayerImpl(LayerTreeImpl* layer_impl, int id);
510 517
511 // Get the color and size of the layer's debug border. 518 // Get the color and size of the layer's debug border.
512 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; 519 virtual void GetDebugBorderProperties(SkColor* color, float* width) const;
513 520
514 void AppendDebugBorderQuad(QuadSink* quad_sink, 521 void AppendDebugBorderQuad(QuadSink* quad_sink,
515 const SharedQuadState* shared_quad_state, 522 const SharedQuadState* shared_quad_state,
516 AppendQuadsData* append_quads_data) const; 523 AppendQuadsData* append_quads_data) const;
517 void AppendDebugBorderQuad(QuadSink* quad_sink, 524 void AppendDebugBorderQuad(QuadSink* quad_sink,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 // tree synchronization. 645 // tree synchronization.
639 ScrollbarLayerImplBase* horizontal_scrollbar_layer_; 646 ScrollbarLayerImplBase* horizontal_scrollbar_layer_;
640 ScrollbarLayerImplBase* vertical_scrollbar_layer_; 647 ScrollbarLayerImplBase* vertical_scrollbar_layer_;
641 648
642 ScopedPtrVector<CopyOutputRequest> copy_requests_; 649 ScopedPtrVector<CopyOutputRequest> copy_requests_;
643 650
644 // Group of properties that need to be computed based on the layer tree 651 // Group of properties that need to be computed based on the layer tree
645 // hierarchy before layers can be drawn. 652 // hierarchy before layers can be drawn.
646 DrawProperties<LayerImpl> draw_properties_; 653 DrawProperties<LayerImpl> draw_properties_;
647 654
655 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
656
648 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 657 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
649 }; 658 };
650 659
651 } // namespace cc 660 } // namespace cc
652 661
653 #endif // CC_LAYERS_LAYER_IMPL_H_ 662 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_client.h ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698