| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "sky/viewer/platform/platform_impl.h" | 5 #include "sky/viewer/platform/platform_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 base::SingleThreadTaskRunner* PlatformImpl::mainThreadTaskRunner() { | 112 base::SingleThreadTaskRunner* PlatformImpl::mainThreadTaskRunner() { |
| 113 return main_thread_task_runner_.get(); | 113 return main_thread_task_runner_.get(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 bool PlatformImpl::isThreadedCompositingEnabled() { | 116 bool PlatformImpl::isThreadedCompositingEnabled() { |
| 117 return true; | 117 return true; |
| 118 } | 118 } |
| 119 | 119 |
| 120 blink::WebCompositorSupport* PlatformImpl::compositorSupport() { | 120 blink::WebCompositorSupport* PlatformImpl::compositorSupport() { |
| 121 return &compositor_support_; | 121 return nullptr; |
| 122 } | 122 } |
| 123 | 123 |
| 124 mojo::NetworkService* PlatformImpl::networkService() { | 124 mojo::NetworkService* PlatformImpl::networkService() { |
| 125 return network_service_.get(); | 125 return network_service_.get(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 blink::WebURLLoader* PlatformImpl::createURLLoader() { | 128 blink::WebURLLoader* PlatformImpl::createURLLoader() { |
| 129 return new WebURLLoaderImpl(network_service_.get()); | 129 return new WebURLLoaderImpl(network_service_.get()); |
| 130 } | 130 } |
| 131 | 131 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 else | 248 else |
| 249 CHECK(false); | 249 CHECK(false); |
| 250 | 250 |
| 251 std::string buffer; | 251 std::string buffer; |
| 252 base::ReadFileToString(path, &buffer); | 252 base::ReadFileToString(path, &buffer); |
| 253 CHECK(!buffer.empty()); | 253 CHECK(!buffer.empty()); |
| 254 return blink::WebData(buffer.data(), buffer.size()); | 254 return blink::WebData(buffer.data(), buffer.size()); |
| 255 } | 255 } |
| 256 | 256 |
| 257 } // namespace sky | 257 } // namespace sky |
| OLD | NEW |