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

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

Issue 179973004: Share Group plumbing in Blink; Remove WebGL from default share group (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Style nit and comment Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/graphics/gpu/DrawingBuffer.cpp ('k') | no next file » | 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 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value. 551 // Enumeration histogram buckets are linear, boundaryValue should be larger than any possible sample value.
552 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { } 552 virtual void histogramEnumeration(const char* name, int sample, int boundary Value) { }
553 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets. 553 // Unlike enumeration histograms, sparse histograms only allocate memory for non-empty buckets.
554 virtual void histogramSparse(const char* name, int sample) { } 554 virtual void histogramSparse(const char* name, int sample) { }
555 555
556 556
557 // GPU ---------------------------------------------------------------- 557 // GPU ----------------------------------------------------------------
558 // 558 //
559 // May return null if GPU is not supported. 559 // May return null if GPU is not supported.
560 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance. 560 // Returns newly allocated and initialized offscreen WebGraphicsContext3D in stance.
561 // Passing an existing context to shareContext will create the new context i n the same share group as the passed context.
562 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&, WebGraphicsContext3D* shareContext) { return 0; }
561 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; } 563 virtual WebGraphicsContext3D* createOffscreenGraphicsContext3D(const WebGrap hicsContext3D::Attributes&) { return 0; }
562 564
563 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null 565 // Returns a newly allocated and initialized offscreen context provider. The provider may return a null
564 // graphics context if GPU is not supported. 566 // graphics context if GPU is not supported.
565 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; } 567 virtual WebGraphicsContext3DProvider* createSharedOffscreenGraphicsContext3D Provider() { return 0; }
566 568
567 // Returns true if the platform is capable of producing an offscreen context suitable for accelerating 2d canvas. 569 // 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 570 // 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. 571 // locking the screen or if the platform cannot provide a context with suita ble performance characteristics.
570 // 572 //
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 virtual WebDatabaseObserver* databaseObserver() { return 0; } 640 virtual WebDatabaseObserver* databaseObserver() { return 0; }
639 641
640 642
641 protected: 643 protected:
642 virtual ~Platform() { } 644 virtual ~Platform() { }
643 }; 645 };
644 646
645 } // namespace blink 647 } // namespace blink
646 648
647 #endif 649 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/gpu/DrawingBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698