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

Side by Side Diff: android_webview/browser/parent_compositor_draw_constraints.cc

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up the APIs in BVR client a little Created 6 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
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
5 #include "android_webview/browser/parent_compositor_draw_constraints.h"
6
7 namespace android_webview {
8
9 ParentCompositorDrawConstraints::ParentCompositorDrawConstraints()
10 : is_layer(false) {
11 }
12
13 ParentCompositorDrawConstraints::ParentCompositorDrawConstraints(
14 bool is_layer,
15 const gfx::Transform& transform,
16 const gfx::Rect& surface_rect)
17 : is_layer(is_layer), transform(transform), surface_rect(surface_rect) {
18 }
19
20 bool ParentCompositorDrawConstraints::Equals(
21 const ParentCompositorDrawConstraints& other) const {
22 if (is_layer != other.is_layer)
23 return false;
24
25 if (!is_layer) // Don't care about the surface size when neither is on a
boliu 2014/07/29 23:50:41 nit: Move comment to above or into the block Also
hush (inactive) 2014/07/30 00:11:33 I moved the comment above the block On 2014/07/29
26 // layer.
27 return transform == other.transform;
28 else
29 return surface_rect == other.surface_rect;
30 }
31
32 } // namespace webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698