Index: android_webview/browser/parent_compositor_draw_constraints.cc |
diff --git a/android_webview/browser/parent_compositor_draw_constraints.cc b/android_webview/browser/parent_compositor_draw_constraints.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..10f52eda5b102717a6c4d74035457554e42c717d |
--- /dev/null |
+++ b/android_webview/browser/parent_compositor_draw_constraints.cc |
@@ -0,0 +1,28 @@ |
+// 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. |
+ |
+#include "android_webview/browser/parent_compositor_draw_constraints.h" |
+ |
+namespace android_webview { |
+ |
+ParentCompositorDrawConstraints::ParentCompositorDrawConstraints() |
+ : is_layer(false), transform(gfx::Transform()), surface_rect(gfx::Rect()) { |
boliu
2014/07/29 19:02:41
Transform and Rect have default constructors
hush (inactive)
2014/07/29 21:14:21
okay. Removed.
On 2014/07/29 19:02:41, boliu wrote
|
+} |
+ |
+ParentCompositorDrawConstraints::ParentCompositorDrawConstraints( |
+ bool is_layer, |
+ gfx::Transform transform, |
+ gfx::Rect surface_rect) { |
+ this->is_layer = is_layer; |
+ this->transform = transform; |
+ this->surface_rect = surface_rect; |
boliu
2014/07/29 19:02:41
Use initializer list. Otherwise why have this cons
hush (inactive)
2014/07/29 21:14:21
used initializer list.
On 2014/07/29 19:02:41, bol
|
+} |
+ |
+bool ParentCompositorDrawConstraints::equals( |
+ ParentCompositorDrawConstraints other) const { |
+ return is_layer == other.is_layer && transform == other.transform && |
+ surface_rect == other.surface_rect; |
+} |
+ |
+} // namespace webview |