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 "components/html_viewer/blink_platform_impl.h" | 5 #include "components/html_viewer/blink_platform_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 BlinkPlatformImpl::createOffscreenGraphicsContext3D( | 172 BlinkPlatformImpl::createOffscreenGraphicsContext3D( |
173 const blink::WebGraphicsContext3D::Attributes& attributes, | 173 const blink::WebGraphicsContext3D::Attributes& attributes, |
174 blink::WebGraphicsContext3D* share_context) { | 174 blink::WebGraphicsContext3D* share_context) { |
175 return createOffscreenGraphicsContext3D(attributes, share_context, nullptr); | 175 return createOffscreenGraphicsContext3D(attributes, share_context, nullptr); |
176 } | 176 } |
177 | 177 |
178 blink::WebGraphicsContext3D* | 178 blink::WebGraphicsContext3D* |
179 BlinkPlatformImpl::createOffscreenGraphicsContext3D( | 179 BlinkPlatformImpl::createOffscreenGraphicsContext3D( |
180 const blink::WebGraphicsContext3D::Attributes& attributes, | 180 const blink::WebGraphicsContext3D::Attributes& attributes, |
181 blink::WebGraphicsContext3D* share_context, | 181 blink::WebGraphicsContext3D* share_context, |
182 blink::WebGLInfo* gl_info) { | 182 blink::WebGraphicsContext3D::WebGraphicsInfo* gl_info) { |
183 // TODO(penghuang): Use the app from the right HTMLDocument. | 183 // TODO(penghuang): Use the app from the right HTMLDocument. |
184 return WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( | 184 return WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( |
185 global_state_, app_, GURL(attributes.topDocumentURL), attributes, | 185 global_state_, app_, GURL(attributes.topDocumentURL), attributes, |
186 share_context, gl_info); | 186 share_context, gl_info); |
187 } | 187 } |
188 | 188 |
189 blink::WebGraphicsContext3D* | 189 blink::WebGraphicsContext3D* |
190 BlinkPlatformImpl::createOffscreenGraphicsContext3D( | 190 BlinkPlatformImpl::createOffscreenGraphicsContext3D( |
191 const blink::WebGraphicsContext3D::Attributes& attributes) { | 191 const blink::WebGraphicsContext3D::Attributes& attributes) { |
192 return createOffscreenGraphicsContext3D(attributes, nullptr, nullptr); | 192 return createOffscreenGraphicsContext3D(attributes, nullptr, nullptr); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 BlinkPlatformImpl::notificationManager() { | 315 BlinkPlatformImpl::notificationManager() { |
316 return &web_notification_manager_; | 316 return &web_notification_manager_; |
317 } | 317 } |
318 | 318 |
319 void BlinkPlatformImpl::UpdateWebThreadTLS(blink::WebThread* thread) { | 319 void BlinkPlatformImpl::UpdateWebThreadTLS(blink::WebThread* thread) { |
320 DCHECK(!current_thread_slot_.Get()); | 320 DCHECK(!current_thread_slot_.Get()); |
321 current_thread_slot_.Set(thread); | 321 current_thread_slot_.Set(thread); |
322 } | 322 } |
323 | 323 |
324 } // namespace html_viewer | 324 } // namespace html_viewer |
OLD | NEW |