Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / android_webview / browser / parent_compositor_draw_constraints.h
blobc8e535c9c9b642ed25bfe1bc0587d2cb0831f4d2
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.
5 #ifndef ANDROID_WEBVIEW_BROWSER_PARENT_COMPOSITOR_DRAW_CONSTRAINTS_H_
6 #define ANDROID_WEBVIEW_BROWSER_PARENT_COMPOSITOR_DRAW_CONSTRAINTS_H_
8 #include "ui/gfx/geometry/rect.h"
9 #include "ui/gfx/transform.h"
11 namespace android_webview {
13 class ChildFrame;
15 struct ParentCompositorDrawConstraints {
16 bool is_layer;
17 gfx::Transform transform;
18 gfx::Rect surface_rect;
20 ParentCompositorDrawConstraints();
21 ParentCompositorDrawConstraints(bool is_layer,
22 const gfx::Transform& transform,
23 const gfx::Rect& surface_rect);
24 bool NeedUpdate(const ChildFrame& frame) const;
27 } // namespace android_webview
29 #endif // ANDROID_WEBVIEW_BROWSER_PARENT_COMPOSITOR_DRAW_CONSTRAINTS_H_