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/bluetooth/bluetooth_dispatcher_host.h" | 10 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h" |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 PageStateToHistoryEntry(page_state[index])); | 417 PageStateToHistoryEntry(page_state[index])); |
418 result.append( | 418 result.append( |
419 DumpHistoryItem(entry->root_history_node(), | 419 DumpHistoryItem(entry->root_history_node(), |
420 8, | 420 8, |
421 index == current_index)); | 421 index == current_index)); |
422 } | 422 } |
423 result.append("===============================================\n"); | 423 result.append("===============================================\n"); |
424 return result; | 424 return result; |
425 } | 425 } |
426 | 426 |
| 427 scoped_refptr<cc::TextureLayer> CreateTextureLayerForMailbox( |
| 428 cc::TextureLayerClient* client) { |
| 429 return cc::TextureLayer::CreateForMailbox( |
| 430 cc_blink::WebLayerImpl::LayerSettings(), client); |
| 431 } |
| 432 |
427 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer) { | 433 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer) { |
428 return new cc_blink::WebLayerImpl(layer); | 434 return new cc_blink::WebLayerImpl(layer); |
429 } | 435 } |
430 | 436 |
431 } // namespace content | 437 } // namespace content |
OLD | NEW |