OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/test/layouttest_support.h" | 5 #include "content/public/test/layouttest_support.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "cc/blink/web_layer_impl.h" | 9 #include "cc/blink/web_layer_impl.h" |
10 #include "content/browser/renderer_host/render_widget_host_impl.h" | 10 #include "content/browser/renderer_host/render_widget_host_impl.h" |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 PageStateToHistoryEntry(page_state[index])); | 409 PageStateToHistoryEntry(page_state[index])); |
410 result.append( | 410 result.append( |
411 DumpHistoryItem(entry->root_history_node(), | 411 DumpHistoryItem(entry->root_history_node(), |
412 8, | 412 8, |
413 index == current_index)); | 413 index == current_index)); |
414 } | 414 } |
415 result.append("===============================================\n"); | 415 result.append("===============================================\n"); |
416 return result; | 416 return result; |
417 } | 417 } |
418 | 418 |
| 419 scoped_refptr<cc::TextureLayer> CreateTextureLayerForMailbox( |
| 420 cc::TextureLayerClient* client) { |
| 421 return cc::TextureLayer::CreateForMailbox( |
| 422 cc_blink::WebLayerImpl::LayerSettings(), client); |
| 423 } |
| 424 |
419 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer) { | 425 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer) { |
420 return new cc_blink::WebLayerImpl(layer); | 426 return new cc_blink::WebLayerImpl(layer); |
421 } | 427 } |
422 | 428 |
423 } // namespace content | 429 } // namespace content |
OLD | NEW |