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/shell/renderer/layout_test/blink_test_runner.h" | 5 #include "content/shell/renderer/layout_test/blink_test_runner.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <clocale> | 8 #include <clocale> |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 } | 629 } |
630 | 630 |
631 Send(new LayoutTestHostMsg_SetPermission( | 631 Send(new LayoutTestHostMsg_SetPermission( |
632 routing_id(), name, status, origin, embedding_origin)); | 632 routing_id(), name, status, origin, embedding_origin)); |
633 } | 633 } |
634 | 634 |
635 void BlinkTestRunner::ResetPermissions() { | 635 void BlinkTestRunner::ResetPermissions() { |
636 Send(new LayoutTestHostMsg_ResetPermissions(routing_id())); | 636 Send(new LayoutTestHostMsg_ResetPermissions(routing_id())); |
637 } | 637 } |
638 | 638 |
| 639 scoped_refptr<cc::TextureLayer> BlinkTestRunner::CreateTextureLayerForMailbox( |
| 640 cc::TextureLayerClient* client) { |
| 641 return ::content::CreateTextureLayerForMailbox(client); |
| 642 } |
| 643 |
639 blink::WebLayer* BlinkTestRunner::InstantiateWebLayer( | 644 blink::WebLayer* BlinkTestRunner::InstantiateWebLayer( |
640 scoped_refptr<cc::TextureLayer> layer) { | 645 scoped_refptr<cc::TextureLayer> layer) { |
641 return ::content::InstantiateWebLayer(layer); | 646 return ::content::InstantiateWebLayer(layer); |
642 } | 647 } |
643 | 648 |
644 cc::SharedBitmapManager* BlinkTestRunner::GetSharedBitmapManager() { | 649 cc::SharedBitmapManager* BlinkTestRunner::GetSharedBitmapManager() { |
645 return RenderThread::Get()->GetSharedBitmapManager(); | 650 return RenderThread::Get()->GetSharedBitmapManager(); |
646 } | 651 } |
647 | 652 |
648 // RenderViewObserver -------------------------------------------------------- | 653 // RenderViewObserver -------------------------------------------------------- |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 | 845 |
841 leak_detector_->TryLeakDetection(main_frame); | 846 leak_detector_->TryLeakDetection(main_frame); |
842 } | 847 } |
843 | 848 |
844 void BlinkTestRunner::ReportLeakDetectionResult( | 849 void BlinkTestRunner::ReportLeakDetectionResult( |
845 const LeakDetectionResult& report) { | 850 const LeakDetectionResult& report) { |
846 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 851 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
847 } | 852 } |
848 | 853 |
849 } // namespace content | 854 } // namespace content |
OLD | NEW |