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

Side by Side Diff: ui/compositor/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: Implemented TakeDebugInfo in ui::Layer. 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
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 float device_scale_factor() const { return device_scale_factor_; } 329 float device_scale_factor() const { return device_scale_factor_; }
330 330
331 // Forces a render surface to be used on this layer. This has no positive 331 // Forces a render surface to be used on this layer. This has no positive
332 // impact, and is only used for benchmarking/testing purpose. 332 // impact, and is only used for benchmarking/testing purpose.
333 void SetForceRenderSurface(bool force); 333 void SetForceRenderSurface(bool force);
334 bool force_render_surface() const { return force_render_surface_; } 334 bool force_render_surface() const { return force_render_surface_; }
335 335
336 // LayerClient 336 // LayerClient
337 virtual std::string DebugName() OVERRIDE; 337 virtual std::string DebugName() OVERRIDE;
338 338
339 virtual base::debug::ConvertableToTraceFormat* TakeDebugInfo() OVERRIDE;
340
339 // LayerAnimationEventObserver 341 // LayerAnimationEventObserver
340 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE; 342 virtual void OnAnimationStarted(const cc::AnimationEvent& event) OVERRIDE;
341 343
342 // Whether this layer has animations waiting to get sent to its cc::Layer. 344 // Whether this layer has animations waiting to get sent to its cc::Layer.
343 bool HasPendingThreadedAnimations() { 345 bool HasPendingThreadedAnimations() {
344 return pending_threaded_animations_.size() != 0; 346 return pending_threaded_animations_.size() != 0;
345 } 347 }
346 348
347 // Triggers a call to SwitchToLayer. 349 // Triggers a call to SwitchToLayer.
348 void SwitchCCLayerForTest(); 350 void SwitchCCLayerForTest();
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // The size of the delegated frame in DIP, set when SetShowDelegatedContent 494 // The size of the delegated frame in DIP, set when SetShowDelegatedContent
493 // was called. 495 // was called.
494 gfx::Size delegated_frame_size_in_dip_; 496 gfx::Size delegated_frame_size_in_dip_;
495 497
496 DISALLOW_COPY_AND_ASSIGN(Layer); 498 DISALLOW_COPY_AND_ASSIGN(Layer);
497 }; 499 };
498 500
499 } // namespace ui 501 } // namespace ui
500 502
501 #endif // UI_COMPOSITOR_LAYER_H_ 503 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« cc/layers/layer_client.h ('K') | « cc/layers/layer_impl.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698