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

Unified Diff: public/platform/WebExternalBitmap.h

Issue 17859003: Allow DrawingBuffer to present to a bitmap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: public/platform/WebExternalBitmap.h
diff --git a/public/platform/WebGraphicsContext3DProvider.h b/public/platform/WebExternalBitmap.h
similarity index 80%
copy from public/platform/WebGraphicsContext3DProvider.h
copy to public/platform/WebExternalBitmap.h
index dba2216773526377c53b27a9d6830bce0c25fc48..cba09240f8f75c91b9be5362dcee8cff505170b8 100644
--- a/public/platform/WebGraphicsContext3DProvider.h
+++ b/public/platform/WebExternalBitmap.h
@@ -28,24 +28,24 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebGraphicsContext3DProvider_h
-#define WebGraphicsContext3DProvider_h
+#ifndef WebExternalBitmap_h
+#define WebExternalBitmap_h
-#include "WebCommon.h"
-
-class GrContext;
+#include "WebSize.h"
jochen (gone - plz use gerrit) 2013/07/02 22:37:01 I think it should be enough to forward declare Web
namespace WebKit {
-class WebGraphicsContext3D;
-class WebGraphicsContext3DProvider {
+class WebExternalBitmap {
public:
- virtual ~WebGraphicsContext3DProvider() { }
+ virtual WebSize getSize() = 0;
+
+ // Sets the size of the bitmap. This will reallocate the bitmap and
+ // invalidate the pointer returned from getPointer if the size changes.
jochen (gone - plz use gerrit) 2013/07/02 22:37:01 how will you guarantee this (given that this is a
+ virtual void setSize(WebSize) = 0;
- virtual WebGraphicsContext3D* context3d() = 0;
- virtual GrContext* grContext() = 0;
+ virtual void* getPointer() = 0;
};
} // namespace WebKit
-#endif
+#endif // WebExternalBitmap_h

Powered by Google App Engine
This is Rietveld 408576698