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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 SkBitmap bitmap; | 211 SkBitmap bitmap; |
212 | 212 |
213 m_client->createFontAtlas(bitmap, asciiToWebRectTable, fontHeight); | 213 m_client->createFontAtlas(bitmap, asciiToWebRectTable, fontHeight); |
214 | 214 |
215 for (int i = 0; i < 128; ++i) | 215 for (int i = 0; i < 128; ++i) |
216 asciiToRectTable[i] = asciiToWebRectTable[i]; | 216 asciiToRectTable[i] = asciiToWebRectTable[i]; |
217 | 217 |
218 return FontAtlas::create(bitmap, asciiToRectTable, fontHeight).Pass(); | 218 return FontAtlas::create(bitmap, asciiToRectTable, fontHeight).Pass(); |
219 } | 219 } |
220 | 220 |
221 void WebLayerTreeViewImpl::loseCompositorContext(int numTimes) | |
222 { | |
223 m_layerTreeHost->loseOutputSurface(numTimes); | |
224 } | |
225 | |
226 void WebLayerTreeViewImpl::willBeginFrame() | 221 void WebLayerTreeViewImpl::willBeginFrame() |
227 { | 222 { |
228 m_client->willBeginFrame(); | 223 m_client->willBeginFrame(); |
229 } | 224 } |
230 | 225 |
231 void WebLayerTreeViewImpl::didBeginFrame() | 226 void WebLayerTreeViewImpl::didBeginFrame() |
232 { | 227 { |
233 m_client->didBeginFrame(); | 228 m_client->didBeginFrame(); |
234 } | 229 } |
235 | 230 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 { | 282 { |
288 m_client->didCompleteSwapBuffers(); | 283 m_client->didCompleteSwapBuffers(); |
289 } | 284 } |
290 | 285 |
291 void WebLayerTreeViewImpl::scheduleComposite() | 286 void WebLayerTreeViewImpl::scheduleComposite() |
292 { | 287 { |
293 m_client->scheduleComposite(); | 288 m_client->scheduleComposite(); |
294 } | 289 } |
295 | 290 |
296 } // namespace WebKit | 291 } // namespace WebKit |
OLD | NEW |