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 "web_layer_tree_view_impl.h" | 5 #include "web_layer_tree_view_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "cc/font_atlas.h" | 8 #include "cc/font_atlas.h" |
9 #include "cc/input_handler.h" | 9 #include "cc/input_handler.h" |
10 #include "cc/layer.h" | 10 #include "cc/layer.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 m_client->createFontAtlas(bitmap, asciiToWebRectTable, fontHeight); | 201 m_client->createFontAtlas(bitmap, asciiToWebRectTable, fontHeight); |
202 | 202 |
203 for (int i = 0; i < 128; ++i) | 203 for (int i = 0; i < 128; ++i) |
204 asciiToRectTable[i] = asciiToWebRectTable[i]; | 204 asciiToRectTable[i] = asciiToWebRectTable[i]; |
205 | 205 |
206 return FontAtlas::create(bitmap, asciiToRectTable, fontHeight).Pass(); | 206 return FontAtlas::create(bitmap, asciiToRectTable, fontHeight).Pass(); |
207 } | 207 } |
208 | 208 |
209 void WebLayerTreeViewImpl::loseCompositorContext(int numTimes) | 209 void WebLayerTreeViewImpl::loseCompositorContext(int numTimes) |
210 { | 210 { |
211 m_layerTreeHost->loseContext(numTimes); | 211 m_layerTreeHost->loseOutputSurface(numTimes); |
212 } | 212 } |
213 | 213 |
214 void WebLayerTreeViewImpl::willBeginFrame() | 214 void WebLayerTreeViewImpl::willBeginFrame() |
215 { | 215 { |
216 m_client->willBeginFrame(); | 216 m_client->willBeginFrame(); |
217 } | 217 } |
218 | 218 |
219 void WebLayerTreeViewImpl::didBeginFrame() | 219 void WebLayerTreeViewImpl::didBeginFrame() |
220 { | 220 { |
221 m_client->didBeginFrame(); | 221 m_client->didBeginFrame(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 { | 274 { |
275 m_client->didCompleteSwapBuffers(); | 275 m_client->didCompleteSwapBuffers(); |
276 } | 276 } |
277 | 277 |
278 void WebLayerTreeViewImpl::scheduleComposite() | 278 void WebLayerTreeViewImpl::scheduleComposite() |
279 { | 279 { |
280 m_client->scheduleComposite(); | 280 m_client->scheduleComposite(); |
281 } | 281 } |
282 | 282 |
283 } // namespace WebKit | 283 } // namespace WebKit |
OLD | NEW |