| 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 "config.h" | 5 #include "config.h" |
| 6 #include "web_content_layer_impl.h" | 6 #include "web_content_layer_impl.h" |
| 7 | 7 |
| 8 #include "SkMatrix44.h" | 8 #include "SkMatrix44.h" |
| 9 #include "cc/content_layer.h" | 9 #include "cc/content_layer.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayerClie
nt.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayerClie
nt.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatRect.h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" |
| 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
| 15 #include "webcore_convert.h" | |
| 16 | 15 |
| 17 using namespace cc; | 16 using namespace cc; |
| 18 | 17 |
| 19 namespace WebKit { | 18 namespace WebKit { |
| 20 | 19 |
| 21 WebContentLayer* WebContentLayer::create(WebContentLayerClient* client) | 20 WebContentLayer* WebContentLayer::create(WebContentLayerClient* client) |
| 22 { | 21 { |
| 23 return new WebContentLayerImpl(client); | 22 return new WebContentLayerImpl(client); |
| 24 } | 23 } |
| 25 | 24 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 m_client->paintContents(canvas, | 78 m_client->paintContents(canvas, |
| 80 clip, | 79 clip, |
| 81 #if WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT | 80 #if WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT |
| 82 m_layer->layer()->useLCDText(), | 81 m_layer->layer()->useLCDText(), |
| 83 #endif // WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT | 82 #endif // WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT |
| 84 webOpaque); | 83 webOpaque); |
| 85 opaque = webOpaque; | 84 opaque = webOpaque; |
| 86 } | 85 } |
| 87 | 86 |
| 88 } // namespace WebKit | 87 } // namespace WebKit |
| OLD | NEW |