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

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

Issue 16903005: Add layer name into frame viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pulling name when tracing Created 7 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
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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 virtual bool DrawsContent() const; 283 virtual bool DrawsContent() const;
284 virtual void SavePaintProperties(); 284 virtual void SavePaintProperties();
285 virtual void Update(ResourceUpdateQueue* queue, 285 virtual void Update(ResourceUpdateQueue* queue,
286 const OcclusionTracker* occlusion, 286 const OcclusionTracker* occlusion,
287 RenderingStats* stats) {} 287 RenderingStats* stats) {}
288 virtual bool NeedMoreUpdates(); 288 virtual bool NeedMoreUpdates();
289 virtual void SetIsMask(bool is_mask) {} 289 virtual void SetIsMask(bool is_mask) {}
290 virtual void ReduceMemoryUsage() {} 290 virtual void ReduceMemoryUsage() {}
291 291
292 void SetDebugName(const std::string& debug_name); 292 void SetDebugName(const std::string& debug_name);
293 virtual std::string DebugName() { return debug_name_; }
294
293 void SetCompositingReasons(CompositingReasons reasons); 295 void SetCompositingReasons(CompositingReasons reasons);
294 296
295 virtual void PushPropertiesTo(LayerImpl* layer); 297 virtual void PushPropertiesTo(LayerImpl* layer);
296 298
297 void CreateRenderSurface(); 299 void CreateRenderSurface();
298 void ClearRenderSurface(); 300 void ClearRenderSurface();
299 301
300 // The contents scale converts from logical, non-page-scaled pixels to target 302 // The contents scale converts from logical, non-page-scaled pixels to target
301 // pixels. The contents scale is 1 for the root layer as it is already in 303 // pixels. The contents scale is 1 for the root layer as it is already in
302 // physical pixels. By default contents scale is forced to be 1 except for 304 // physical pixels. By default contents scale is forced to be 1 except for
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 DrawProperties<Layer, RenderSurface> draw_properties_; 491 DrawProperties<Layer, RenderSurface> draw_properties_;
490 492
491 PaintProperties paint_properties_; 493 PaintProperties paint_properties_;
492 494
493 DISALLOW_COPY_AND_ASSIGN(Layer); 495 DISALLOW_COPY_AND_ASSIGN(Layer);
494 }; 496 };
495 497
496 } // namespace cc 498 } // namespace cc
497 499
498 #endif // CC_LAYERS_LAYER_H_ 500 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/content_layer_client.h ('k') | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698