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 "cc/stubs/float_rect.h" | 10 #include "cc/stubs/float_rect.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 { | 66 { |
67 m_layer->layer()->setUseLCDText(enable); | 67 m_layer->layer()->setUseLCDText(enable); |
68 } | 68 } |
69 | 69 |
70 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) | 70 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) |
71 { | 71 { |
72 m_layer->layer()->setDrawCheckerboardForMissingTiles(enable); | 72 m_layer->layer()->setDrawCheckerboardForMissingTiles(enable); |
73 } | 73 } |
74 | 74 |
75 | 75 |
76 void WebContentLayerImpl::paintContents(SkCanvas* canvas, const IntRect& clip, F
loatRect& opaque) | 76 void WebContentLayerImpl::paintContents(SkCanvas* canvas, const gfx::Rect& clip,
gfx::RectF& opaque) |
77 { | 77 { |
78 if (!m_client) | 78 if (!m_client) |
79 return; | 79 return; |
80 WebFloatRect webOpaque; | 80 WebFloatRect webOpaque; |
81 m_client->paintContents(canvas, | 81 m_client->paintContents(canvas, |
82 convert(clip), | 82 clip, |
83 #if WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT | 83 #if WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT |
84 m_layer->layer()->useLCDText(), | 84 m_layer->layer()->useLCDText(), |
85 #endif // WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT | 85 #endif // WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT |
86 webOpaque); | 86 webOpaque); |
87 opaque = convert(webOpaque); | 87 opaque = webOpaque; |
88 } | 88 } |
89 | 89 |
90 } // namespace WebKit | 90 } // namespace WebKit |
OLD | NEW |