Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: sky/viewer/platform/platform_impl.cc

Issue 874633003: Remove WebCompositorSupport (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 base::SingleThreadTaskRunner* PlatformImpl::mainThreadTaskRunner() { 109 base::SingleThreadTaskRunner* PlatformImpl::mainThreadTaskRunner() {
110 return main_thread_task_runner_.get(); 110 return main_thread_task_runner_.get();
111 } 111 }
112 112
113 bool PlatformImpl::isThreadedCompositingEnabled() { 113 bool PlatformImpl::isThreadedCompositingEnabled() {
114 return true; 114 return true;
115 } 115 }
116 116
117 blink::WebCompositorSupport* PlatformImpl::compositorSupport() {
118 return nullptr;
119 }
120
121 mojo::NetworkService* PlatformImpl::networkService() { 117 mojo::NetworkService* PlatformImpl::networkService() {
122 return network_service_.get(); 118 return network_service_.get();
123 } 119 }
124 120
125 blink::WebURLLoader* PlatformImpl::createURLLoader() { 121 blink::WebURLLoader* PlatformImpl::createURLLoader() {
126 return new WebURLLoaderImpl(network_service_.get()); 122 return new WebURLLoaderImpl(network_service_.get());
127 } 123 }
128 124
129 blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url) 125 blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url)
130 const { 126 const {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 const unsigned char* category_group_enabled, 217 const unsigned char* category_group_enabled,
222 const char* name, 218 const char* name,
223 TraceEventHandle handle) { 219 TraceEventHandle handle) {
224 base::debug::TraceEventHandle traceEventHandle; 220 base::debug::TraceEventHandle traceEventHandle;
225 memcpy(&traceEventHandle, &handle, sizeof(handle)); 221 memcpy(&traceEventHandle, &handle, sizeof(handle));
226 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION( 222 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(
227 category_group_enabled, name, traceEventHandle); 223 category_group_enabled, name, traceEventHandle);
228 } 224 }
229 225
230 } // namespace sky 226 } // namespace sky
OLDNEW
« no previous file with comments | « sky/viewer/platform/platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698