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

Side by Side Diff: public/platform/Platform.h

Issue 640293002: [WebGL-blink] Return meaningful information in WebGL context creation error message (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } 550 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { }
551 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. 551 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets.
552 virtual void histogramSparse(const char* name, int sample) { } 552 virtual void histogramSparse(const char* name, int sample) { }
553 553
554 554
555 // GPU ---------------------------------------------------------------- 555 // GPU ----------------------------------------------------------------
556 // 556 //
557 // May return null if GPU is not supported. 557 // May return null if GPU is not supported.
558 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. 558 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance.
559 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context. 559 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context.
560 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return 0; } 560 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo& glInf o) { return 0; }
piman 2014/10/10 20:23:06 Please pass output params by pointer, not (non-con
Ken Russell (switch to Gerrit) 2014/10/10 20:47:38 Also, figure out a way to avoid temporarily breaki
sivag 2014/10/27 13:33:51 Done.
561 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } 561 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; }
562 562
563 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null 563 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null
564 // graphics context if GPU is not supported. 564 // graphics context if GPU is not supported.
565 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; } 565 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; }
566 566
567 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. 567 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas.
568 // This will return false if the platform cannot promise that contexts will be preserved across operations like 568 // This will return false if the platform cannot promise that contexts will be preserved across operations like
569 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics. 569 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics.
570 // 570 //
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 639
640 virtual WebGeofencingProvider* geofencingProvider() { return 0; } 640 virtual WebGeofencingProvider* geofencingProvider() { return 0; }
641 641
642 protected: 642 protected:
643 virtual ~Platform() { } 643 virtual ~Platform() { }
644 }; 644 };
645 645
646 } // namespace blink 646 } // namespace blink
647 647
648 #endif 648 #endif
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.cpp ('k') | public/platform/WebGraphicsContext3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698