OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/compositor_bindings/web_content_layer_impl.h" | 5 #include "webkit/compositor_bindings/web_content_layer_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "cc/base/switches.h" |
8 #include "cc/content_layer.h" | 9 #include "cc/content_layer.h" |
9 #include "cc/picture_layer.h" | 10 #include "cc/picture_layer.h" |
10 #include "cc/switches.h" | |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayerClie
nt.h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayerClie
nt.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" | 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" |
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
16 #include "third_party/skia/include/utils/SkMatrix44.h" | 16 #include "third_party/skia/include/utils/SkMatrix44.h" |
17 | 17 |
18 using namespace cc; | 18 using namespace cc; |
19 | 19 |
20 namespace WebKit { | 20 namespace WebKit { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 if (!client_) | 71 if (!client_) |
72 return; | 72 return; |
73 | 73 |
74 WebFloatRect web_opaque; | 74 WebFloatRect web_opaque; |
75 client_->paintContents( | 75 client_->paintContents( |
76 canvas, clip, layer_->layer()->can_use_lcd_text(), web_opaque); | 76 canvas, clip, layer_->layer()->can_use_lcd_text(), web_opaque); |
77 opaque = web_opaque; | 77 opaque = web_opaque; |
78 } | 78 } |
79 | 79 |
80 } // namespace WebKit | 80 } // namespace WebKit |
OLD | NEW |