debug_utils.h 961 B

1234567891011121314151617181920212223242526272829303132
  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
  3. // found in the LICENSE file.
  4. #ifndef UI_COMPOSITOR_DEBUG_UTILS_H_
  5. #define UI_COMPOSITOR_DEBUG_UTILS_H_
  6. #include <sstream>
  7. #include "ui/compositor/compositor_export.h"
  8. namespace gfx {
  9. class Point;
  10. }
  11. namespace ui {
  12. class Layer;
  13. // Log the layer hierarchy. Mark layers which contain |mouse_location| with '*'.
  14. COMPOSITOR_EXPORT void PrintLayerHierarchy(const Layer* layer,
  15. const gfx::Point& mouse_location);
  16. // Print the layer hierarchy to |out|. Mark layers which contain
  17. // |mouse_location| with '*'.
  18. COMPOSITOR_EXPORT void PrintLayerHierarchy(const Layer* layer,
  19. const gfx::Point& mouse_location,
  20. std::ostringstream* out);
  21. } // namespace ui
  22. #endif // UI_COMPOSITOR_DEBUG_UTILS_H_