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

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

Issue 380763002: Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed memory leak found by Linux ASAN Created 6 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 | « cc/layers/heads_up_display_layer_impl.cc ('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 21 matching lines...) Expand all
32 #include "third_party/skia/include/core/SkImageFilter.h" 32 #include "third_party/skia/include/core/SkImageFilter.h"
33 #include "third_party/skia/include/core/SkPicture.h" 33 #include "third_party/skia/include/core/SkPicture.h"
34 #include "ui/gfx/point3_f.h" 34 #include "ui/gfx/point3_f.h"
35 #include "ui/gfx/rect.h" 35 #include "ui/gfx/rect.h"
36 #include "ui/gfx/rect_f.h" 36 #include "ui/gfx/rect_f.h"
37 #include "ui/gfx/transform.h" 37 #include "ui/gfx/transform.h"
38 38
39 namespace base { 39 namespace base {
40 namespace debug { 40 namespace debug {
41 class ConvertableToTraceFormat; 41 class ConvertableToTraceFormat;
42 class TracedValue;
42 } 43 }
43 44
44 class DictionaryValue; 45 class DictionaryValue;
45 } 46 }
46 47
47 namespace cc { 48 namespace cc {
48 49
49 class LayerTreeHostImpl; 50 class LayerTreeHostImpl;
50 class LayerTreeImpl; 51 class LayerTreeImpl;
51 class MicroBenchmarkImpl; 52 class MicroBenchmarkImpl;
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0; 515 return scroll_clip_layer_ ? scroll_clip_layer_->bounds().height() : 0;
515 } 516 }
516 517
517 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; 518 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
518 519
519 virtual skia::RefPtr<SkPicture> GetPicture(); 520 virtual skia::RefPtr<SkPicture> GetPicture();
520 521
521 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); 522 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
522 virtual void PushPropertiesTo(LayerImpl* layer); 523 virtual void PushPropertiesTo(LayerImpl* layer);
523 524
524 scoped_ptr<base::Value> AsValue() const; 525 virtual void AsValueInto(base::debug::TracedValue* dict) const;
526
525 virtual size_t GPUMemoryUsageInBytes() const; 527 virtual size_t GPUMemoryUsageInBytes() const;
526 528
527 void SetNeedsPushProperties(); 529 void SetNeedsPushProperties();
528 void AddDependentNeedsPushProperties(); 530 void AddDependentNeedsPushProperties();
529 void RemoveDependentNeedsPushProperties(); 531 void RemoveDependentNeedsPushProperties();
530 bool parent_should_know_need_push_properties() const { 532 bool parent_should_know_need_push_properties() const {
531 return needs_push_properties() || descendant_needs_push_properties(); 533 return needs_push_properties() || descendant_needs_push_properties();
532 } 534 }
533 535
534 bool needs_push_properties() const { return needs_push_properties_; } 536 bool needs_push_properties() const { return needs_push_properties_; }
(...skipping 21 matching lines...) Expand all
556 const gfx::Size& content_bounds, 558 const gfx::Size& content_bounds,
557 const SharedQuadState* shared_quad_state, 559 const SharedQuadState* shared_quad_state,
558 AppendQuadsData* append_quads_data) const; 560 AppendQuadsData* append_quads_data) const;
559 void AppendDebugBorderQuad(RenderPass* render_pass, 561 void AppendDebugBorderQuad(RenderPass* render_pass,
560 const gfx::Size& content_bounds, 562 const gfx::Size& content_bounds,
561 const SharedQuadState* shared_quad_state, 563 const SharedQuadState* shared_quad_state,
562 AppendQuadsData* append_quads_data, 564 AppendQuadsData* append_quads_data,
563 SkColor color, 565 SkColor color,
564 float width) const; 566 float width) const;
565 567
566 virtual void AsValueInto(base::DictionaryValue* dict) const;
567
568 void NoteLayerPropertyChanged(); 568 void NoteLayerPropertyChanged();
569 void NoteLayerPropertyChangedForSubtree(); 569 void NoteLayerPropertyChangedForSubtree();
570 570
571 // Note carefully this does not affect the current layer. 571 // Note carefully this does not affect the current layer.
572 void NoteLayerPropertyChangedForDescendants(); 572 void NoteLayerPropertyChangedForDescendants();
573 573
574 private: 574 private:
575 void NoteLayerPropertyChangedForDescendantsInternal(); 575 void NoteLayerPropertyChangedForDescendantsInternal();
576 576
577 virtual const char* LayerTypeAsString() const; 577 virtual const char* LayerTypeAsString() const;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 DrawProperties<LayerImpl> draw_properties_; 700 DrawProperties<LayerImpl> draw_properties_;
701 701
702 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 702 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
703 703
704 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 704 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
705 }; 705 };
706 706
707 } // namespace cc 707 } // namespace cc
708 708
709 #endif // CC_LAYERS_LAYER_IMPL_H_ 709 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698