| 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/rand_util.h" | 10 #include "base/rand_util.h" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 119 } |
| 120 | 120 |
| 121 bool PlatformImpl::isThreadedCompositingEnabled() { | 121 bool PlatformImpl::isThreadedCompositingEnabled() { |
| 122 return true; | 122 return true; |
| 123 } | 123 } |
| 124 | 124 |
| 125 blink::WebCompositorSupport* PlatformImpl::compositorSupport() { | 125 blink::WebCompositorSupport* PlatformImpl::compositorSupport() { |
| 126 return &compositor_support_; | 126 return &compositor_support_; |
| 127 } | 127 } |
| 128 | 128 |
| 129 blink::WebScrollbarBehavior* PlatformImpl::scrollbarBehavior() { | |
| 130 return &scrollbar_behavior_; | |
| 131 } | |
| 132 | |
| 133 mojo::NetworkService* PlatformImpl::networkService() { | 129 mojo::NetworkService* PlatformImpl::networkService() { |
| 134 return network_service_.get(); | 130 return network_service_.get(); |
| 135 } | 131 } |
| 136 | 132 |
| 137 blink::WebURLLoader* PlatformImpl::createURLLoader() { | 133 blink::WebURLLoader* PlatformImpl::createURLLoader() { |
| 138 return new WebURLLoaderImpl(network_service_.get()); | 134 return new WebURLLoaderImpl(network_service_.get()); |
| 139 } | 135 } |
| 140 | 136 |
| 141 blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url) | 137 blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url) |
| 142 const { | 138 const { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 const unsigned char* category_group_enabled, | 229 const unsigned char* category_group_enabled, |
| 234 const char* name, | 230 const char* name, |
| 235 TraceEventHandle handle) { | 231 TraceEventHandle handle) { |
| 236 base::debug::TraceEventHandle traceEventHandle; | 232 base::debug::TraceEventHandle traceEventHandle; |
| 237 memcpy(&traceEventHandle, &handle, sizeof(handle)); | 233 memcpy(&traceEventHandle, &handle, sizeof(handle)); |
| 238 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION( | 234 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION( |
| 239 category_group_enabled, name, traceEventHandle); | 235 category_group_enabled, name, traceEventHandle); |
| 240 } | 236 } |
| 241 | 237 |
| 242 } // namespace sky | 238 } // namespace sky |
| OLD | NEW |