Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(295)

Side by Side Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 11748031: cc: remove loseOutputSurface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698