parent_compositor_draw_constraints.h 941 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2014 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 ANDROID_WEBVIEW_BROWSER_GFX_PARENT_COMPOSITOR_DRAW_CONSTRAINTS_H_
  5. #define ANDROID_WEBVIEW_BROWSER_GFX_PARENT_COMPOSITOR_DRAW_CONSTRAINTS_H_
  6. #include "ui/gfx/geometry/size.h"
  7. #include "ui/gfx/geometry/transform.h"
  8. namespace android_webview {
  9. class ChildFrame;
  10. struct ParentCompositorDrawConstraints {
  11. gfx::Size viewport_size;
  12. gfx::Transform transform;
  13. ParentCompositorDrawConstraints();
  14. ParentCompositorDrawConstraints(const gfx::Size& viewport_size,
  15. const gfx::Transform& transform);
  16. bool NeedUpdate(const ChildFrame& frame) const;
  17. bool operator==(const ParentCompositorDrawConstraints& other) const;
  18. };
  19. } // namespace android_webview
  20. #endif // ANDROID_WEBVIEW_BROWSER_GFX_PARENT_COMPOSITOR_DRAW_CONSTRAINTS_H_