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

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

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 /* 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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 // Returns guid corresponding to the given string (the hash value) for 590 // Returns guid corresponding to the given string (the hash value) for
591 // creating a WebMemoryAllocatorDump. 591 // creating a WebMemoryAllocatorDump.
592 virtual WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid(const We bString& guidStr) { return 0; } 592 virtual WebMemoryAllocatorDumpGuid createWebMemoryAllocatorDumpGuid(const We bString& guidStr) { return 0; }
593 593
594 // GPU ---------------------------------------------------------------- 594 // GPU ----------------------------------------------------------------
595 // 595 //
596 // May return null if GPU is not supported. 596 // May return null if GPU is not supported.
597 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. 597 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance.
598 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context. 598 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context.
599 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr ; } 599 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return nullptr ; }
600 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGLInfo* glInf o) { return nullptr; } 600 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext, WebGraphicsConte xt3D::WebGraphicsInfo* glInfo) { return nullptr; }
601 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return nullptr; } 601 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return nullptr; }
602 602
603 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null 603 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null
604 // graphics context if GPU is not supported. 604 // graphics context if GPU is not supported.
605 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return nullptr; } 605 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return nullptr; }
606 606
607 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. 607 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas.
608 // This will return false if the platform cannot promise that contexts will be preserved across operations like 608 // This will return false if the platform cannot promise that contexts will be preserved across operations like
609 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics. 609 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics.
610 // 610 //
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 protected: 734 protected:
735 BLINK_PLATFORM_EXPORT Platform(); 735 BLINK_PLATFORM_EXPORT Platform();
736 virtual ~Platform() { } 736 virtual ~Platform() { }
737 737
738 WebThread* m_mainThread; 738 WebThread* m_mainThread;
739 }; 739 };
740 740
741 } // namespace blink 741 } // namespace blink
742 742
743 #endif 743 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698