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

Side by Side Diff: components/html_viewer/blink_platform_impl.cc

Issue 1384233003: Improve usefulness of webglcontextcreationerror statusMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 "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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 const unsigned char* BlinkPlatformImpl::getTraceCategoryEnabledFlag( 165 const unsigned char* BlinkPlatformImpl::getTraceCategoryEnabledFlag(
166 const char* category_name) { 166 const char* category_name) {
167 static const unsigned char buf[] = "*"; 167 static const unsigned char buf[] = "*";
168 return buf; 168 return buf;
169 } 169 }
170 170
171 blink::WebGraphicsContext3D* 171 blink::WebGraphicsContext3D*
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 blink::WebGraphicsContext3D::WebGraphicsInfo gl_info;
176 return createOffscreenGraphicsContext3D(attributes, share_context, &gl_info);
176 } 177 }
177 178
178 blink::WebGraphicsContext3D* 179 blink::WebGraphicsContext3D*
179 BlinkPlatformImpl::createOffscreenGraphicsContext3D( 180 BlinkPlatformImpl::createOffscreenGraphicsContext3D(
180 const blink::WebGraphicsContext3D::Attributes& attributes, 181 const blink::WebGraphicsContext3D::Attributes& attributes,
181 blink::WebGraphicsContext3D* share_context, 182 blink::WebGraphicsContext3D* share_context,
182 blink::WebGLInfo* gl_info) { 183 blink::WebGraphicsContext3D::WebGraphicsInfo* gl_info) {
183 // TODO(penghuang): Use the app from the right HTMLDocument. 184 // TODO(penghuang): Use the app from the right HTMLDocument.
184 return WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( 185 return WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
185 global_state_, app_, GURL(attributes.topDocumentURL), attributes, 186 global_state_, app_, GURL(attributes.topDocumentURL), attributes,
186 share_context, gl_info); 187 share_context, gl_info);
187 } 188 }
188 189
189 blink::WebGraphicsContext3D* 190 blink::WebGraphicsContext3D*
190 BlinkPlatformImpl::createOffscreenGraphicsContext3D( 191 BlinkPlatformImpl::createOffscreenGraphicsContext3D(
191 const blink::WebGraphicsContext3D::Attributes& attributes) { 192 const blink::WebGraphicsContext3D::Attributes& attributes) {
192 return createOffscreenGraphicsContext3D(attributes, nullptr, nullptr); 193 return createOffscreenGraphicsContext3D(attributes, nullptr, nullptr);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 BlinkPlatformImpl::notificationManager() { 316 BlinkPlatformImpl::notificationManager() {
316 return &web_notification_manager_; 317 return &web_notification_manager_;
317 } 318 }
318 319
319 void BlinkPlatformImpl::UpdateWebThreadTLS(blink::WebThread* thread) { 320 void BlinkPlatformImpl::UpdateWebThreadTLS(blink::WebThread* thread) {
320 DCHECK(!current_thread_slot_.Get()); 321 DCHECK(!current_thread_slot_.Get());
321 current_thread_slot_.Set(thread); 322 current_thread_slot_.Set(thread);
322 } 323 }
323 324
324 } // namespace html_viewer 325 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/blink_platform_impl.h ('k') | components/html_viewer/web_graphics_context_3d_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698