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 "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "cc/content_layer.h" | 10 #include "cc/content_layer.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 return m_layer->layer()->boundsContainPageScale(); | 68 return m_layer->layer()->boundsContainPageScale(); |
69 } | 69 } |
70 | 70 |
71 void WebContentLayerImpl::setAutomaticallyComputeRasterScale(bool automatic) | 71 void WebContentLayerImpl::setAutomaticallyComputeRasterScale(bool automatic) |
72 { | 72 { |
73 m_layer->layer()->setAutomaticallyComputeRasterScale(automatic); | 73 m_layer->layer()->setAutomaticallyComputeRasterScale(automatic); |
74 } | 74 } |
75 | 75 |
76 void WebContentLayerImpl::setUseLCDText(bool enable) | 76 void WebContentLayerImpl::setUseLCDText(bool enable) |
77 { | 77 { |
78 m_layer->layer()->setUseLCDText(enable); | 78 m_layer->layer()->setCanUseLCDText(enable); |
79 } | 79 } |
80 | 80 |
81 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) | 81 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) |
82 { | 82 { |
83 m_layer->layer()->setDrawCheckerboardForMissingTiles(enable); | 83 m_layer->layer()->setDrawCheckerboardForMissingTiles(enable); |
84 } | 84 } |
85 | 85 |
86 | 86 |
87 void WebContentLayerImpl::paintContents(SkCanvas* canvas, const gfx::Rect& clip,
gfx::RectF& opaque) | 87 void WebContentLayerImpl::paintContents(SkCanvas* canvas, const gfx::Rect& clip,
gfx::RectF& opaque) |
88 { | 88 { |
89 if (!m_client) | 89 if (!m_client) |
90 return; | 90 return; |
91 WebFloatRect webOpaque; | 91 WebFloatRect webOpaque; |
92 m_client->paintContents(canvas, | 92 m_client->paintContents(canvas, |
93 clip, | 93 clip, |
94 #if WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT | 94 #if WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT |
95 m_layer->layer()->useLCDText(), | 95 m_layer->layer()->canUseLCDText(), |
96 #endif // WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT | 96 #endif // WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT |
97 webOpaque); | 97 webOpaque); |
98 opaque = webOpaque; | 98 opaque = webOpaque; |
99 } | 99 } |
100 | 100 |
101 } // namespace WebKit | 101 } // namespace WebKit |
OLD | NEW |