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

Side by Side Diff: mojo/services/html_viewer/blink_platform_impl.cc

Issue 558343004: Compositor bindings for mojo html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_view_manager_surface
Patch Set: Add missing m/s/p/cpp/v_m -> m/s/p/cpp/surfaces dep in GN Created 6 years, 3 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
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 "mojo/services/html_viewer/blink_platform_impl.h" 5 #include "mojo/services/html_viewer/blink_platform_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/rand_util.h" 9 #include "base/rand_util.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 void BlinkPlatformImpl::stopSharedTimer() { 131 void BlinkPlatformImpl::stopSharedTimer() {
132 shared_timer_.Stop(); 132 shared_timer_.Stop();
133 } 133 }
134 134
135 void BlinkPlatformImpl::callOnMainThread( 135 void BlinkPlatformImpl::callOnMainThread(
136 void (*func)(void*), void* context) { 136 void (*func)(void*), void* context) {
137 main_loop_->PostTask(FROM_HERE, base::Bind(func, context)); 137 main_loop_->PostTask(FROM_HERE, base::Bind(func, context));
138 } 138 }
139 139
140 bool BlinkPlatformImpl::isThreadedCompositingEnabled() {
141 return true;
142 }
143
144 blink::WebCompositorSupport* BlinkPlatformImpl::compositorSupport() {
145 return &compositor_support_;
146 }
147
140 blink::WebScrollbarBehavior* BlinkPlatformImpl::scrollbarBehavior() { 148 blink::WebScrollbarBehavior* BlinkPlatformImpl::scrollbarBehavior() {
141 return &scrollbar_behavior_; 149 return &scrollbar_behavior_;
142 } 150 }
143 151
144 const unsigned char* BlinkPlatformImpl::getTraceCategoryEnabledFlag( 152 const unsigned char* BlinkPlatformImpl::getTraceCategoryEnabledFlag(
145 const char* category_name) { 153 const char* category_name) {
146 static const unsigned char buf[] = "*"; 154 static const unsigned char buf[] = "*";
147 return buf; 155 return buf;
148 } 156 }
149 157
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 } 228 }
221 229
222 // static 230 // static
223 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { 231 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
224 WebThreadImplForMessageLoop* impl = 232 WebThreadImplForMessageLoop* impl =
225 static_cast<WebThreadImplForMessageLoop*>(thread); 233 static_cast<WebThreadImplForMessageLoop*>(thread);
226 delete impl; 234 delete impl;
227 } 235 }
228 236
229 } // namespace mojo 237 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/blink_platform_impl.h ('k') | mojo/services/html_viewer/html_document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698