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

Side by Side Diff: ui/compositor/layer.h

Issue 135493002: Plumb debug name via debug info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/render_surface_impl.cc ('k') | ui/compositor/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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_COMPOSITOR_LAYER_H_ 5 #ifndef UI_COMPOSITOR_LAYER_H_
6 #define UI_COMPOSITOR_LAYER_H_ 6 #define UI_COMPOSITOR_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 bool use_shared_memory) OVERRIDE; 329 bool use_shared_memory) OVERRIDE;
330 330
331 float device_scale_factor() const { return device_scale_factor_; } 331 float device_scale_factor() const { return device_scale_factor_; }
332 332
333 // Forces a render surface to be used on this layer. This has no positive 333 // Forces a render surface to be used on this layer. This has no positive
334 // impact, and is only used for benchmarking/testing purpose. 334 // impact, and is only used for benchmarking/testing purpose.
335 void SetForceRenderSurface(bool force); 335 void SetForceRenderSurface(bool force);
336 bool force_render_surface() const { return force_render_surface_; } 336 bool force_render_surface() const { return force_render_surface_; }
337 337
338 // LayerClient 338 // LayerClient
339 virtual std::string DebugName() OVERRIDE;
340
341 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> 339 virtual scoped_refptr<base::debug::ConvertableToTraceFormat>
342 TakeDebugInfo() OVERRIDE; 340 TakeDebugInfo() OVERRIDE;
343 341
344 // LayerAnimationEventObserver 342 // LayerAnimationEventObserver
345 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; 343 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE;
346 344
347 // Whether this layer has animations waiting to get sent to its cc::Layer. 345 // Whether this layer has animations waiting to get sent to its cc::Layer.
348 bool HasPendingThreadedAnimations() { 346 bool HasPendingThreadedAnimations() {
349 return pending_threaded_animations_.size() != 0; 347 return pending_threaded_animations_.size() != 0;
350 } 348 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 // The size of the delegated frame in DIP, set when SetShowDelegatedContent 495 // The size of the delegated frame in DIP, set when SetShowDelegatedContent
498 // was called. 496 // was called.
499 gfx::Size delegated_frame_size_in_dip_; 497 gfx::Size delegated_frame_size_in_dip_;
500 498
501 DISALLOW_COPY_AND_ASSIGN(Layer); 499 DISALLOW_COPY_AND_ASSIGN(Layer);
502 }; 500 };
503 501
504 } // namespace ui 502 } // namespace ui
505 503
506 #endif // UI_COMPOSITOR_LAYER_H_ 504 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layers/render_surface_impl.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698