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

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: Add basic definitions to headers. Created 6 years, 1 month 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 | « no previous file | public/platform/WebGraphicsContext3D.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) { return 0; }
561 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return 0; }
561 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } 562 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; }
562 563
563 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null 564 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null
564 // graphics context if GPU is not supported. 565 // graphics context if GPU is not supported.
565 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; } 566 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; }
566 567
567 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. 568 // 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 569 // 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. 570 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics.
570 // 571 //
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 640
640 virtual WebGeofencingProvider* geofencingProvider() { return 0; } 641 virtual WebGeofencingProvider* geofencingProvider() { return 0; }
641 642
642 protected: 643 protected:
643 virtual ~Platform() { } 644 virtual ~Platform() { }
644 }; 645 };
645 646
646 } // namespace blink 647 } // namespace blink
647 648
648 #endif 649 #endif
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebGraphicsContext3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698