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

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

Issue 865153004: Remove dead code related to compositing from Sky (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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 void PlatformImpl::stopSharedTimer() { 105 void PlatformImpl::stopSharedTimer() {
106 shared_timer_.Stop(); 106 shared_timer_.Stop();
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() {
114 return true;
115 }
116
117 mojo::NetworkService* PlatformImpl::networkService() { 113 mojo::NetworkService* PlatformImpl::networkService() {
118 return network_service_.get(); 114 return network_service_.get();
119 } 115 }
120 116
121 blink::WebURLLoader* PlatformImpl::createURLLoader() { 117 blink::WebURLLoader* PlatformImpl::createURLLoader() {
122 return new WebURLLoaderImpl(network_service_.get()); 118 return new WebURLLoaderImpl(network_service_.get());
123 } 119 }
124 120
125 blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url) 121 blink::WebURLError PlatformImpl::cancelledError(const blink::WebURL& url)
126 const { 122 const {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 const unsigned char* category_group_enabled, 213 const unsigned char* category_group_enabled,
218 const char* name, 214 const char* name,
219 TraceEventHandle handle) { 215 TraceEventHandle handle) {
220 base::debug::TraceEventHandle traceEventHandle; 216 base::debug::TraceEventHandle traceEventHandle;
221 memcpy(&traceEventHandle, &handle, sizeof(handle)); 217 memcpy(&traceEventHandle, &handle, sizeof(handle));
222 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION( 218 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(
223 category_group_enabled, name, traceEventHandle); 219 category_group_enabled, name, traceEventHandle);
224 } 220 }
225 221
226 } // namespace sky 222 } // 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