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

Unified Diff: android_webview/browser/parent_compositor_draw_constraints.h

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added a unit test for PictureLayerImpl Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/parent_compositor_draw_constraints.h
diff --git a/android_webview/browser/parent_compositor_draw_constraints.h b/android_webview/browser/parent_compositor_draw_constraints.h
new file mode 100644
index 0000000000000000000000000000000000000000..f7bc819949ceef0b9e24836dd650c777a2f7893f
--- /dev/null
+++ b/android_webview/browser/parent_compositor_draw_constraints.h
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ANDROID_WEBVIEW_BROWSER_PARENT_COMPOSITOR_DRAW_CONSTRAINTS_H_
+#define ANDROID_WEBVIEW_BROWSER_PARENT_COMPOSITOR_DRAW_CONSTRAINTS_H_
+
+#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/transform.h"
+
+namespace android_webview {
+struct ParentCompositorDrawConstraints {
boliu 2014/07/29 19:02:41 nit: blank line
hush (inactive) 2014/07/29 21:14:21 Done.
+ bool is_layer;
+ gfx::Transform transform;
+ gfx::Rect surface_rect;
+
+ ParentCompositorDrawConstraints();
+ ParentCompositorDrawConstraints(bool is_layer,
+ gfx::Transform transform,
+ gfx::Rect surface_rect);
boliu 2014/07/29 19:02:42 gfx:: objects should be const & here.
hush (inactive) 2014/07/29 21:14:21 Done.
+ bool equals(ParentCompositorDrawConstraints other) const;
boliu 2014/07/29 19:02:42 Parameter should be const & Capitalize it "Equals
hush (inactive) 2014/07/29 21:14:21 Done.
+};
+
+} // namespace android_webview
+#endif // ANDROID_WEBVIEW_BROWSER_PARENT_COMPOSITOR_DRAW_CONSTRAINTS_H_
boliu 2014/07/29 19:02:41 nit: blank line
hush (inactive) 2014/07/29 21:14:21 Done.

Powered by Google App Engine
This is Rietveld 408576698