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

Side by Side Diff: Source/core/html/canvas/OESVertexArrayObject.h

Issue 15876011: Make WebGL extensions get lost when context is lost. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 typedef int ExceptionCode; 41 typedef int ExceptionCode;
42 42
43 class OESVertexArrayObject : public WebGLExtension, public ScriptWrappable { 43 class OESVertexArrayObject : public WebGLExtension, public ScriptWrappable {
44 public: 44 public:
45 static PassOwnPtr<OESVertexArrayObject> create(WebGLRenderingContext*); 45 static PassOwnPtr<OESVertexArrayObject> create(WebGLRenderingContext*);
46 static bool supported(WebGLRenderingContext*); 46 static bool supported(WebGLRenderingContext*);
47 static const char* getExtensionName(); 47 static const char* getExtensionName();
48 48
49 virtual ~OESVertexArrayObject(); 49 virtual ~OESVertexArrayObject();
50 virtual ExtensionName getName() const; 50 virtual ExtensionName getName() const;
51 virtual void enable();
51 52
52 PassRefPtr<WebGLVertexArrayObjectOES> createVertexArrayOES(); 53 PassRefPtr<WebGLVertexArrayObjectOES> createVertexArrayOES();
53 void deleteVertexArrayOES(WebGLVertexArrayObjectOES*); 54 void deleteVertexArrayOES(WebGLVertexArrayObjectOES*);
54 GC3Dboolean isVertexArrayOES(WebGLVertexArrayObjectOES*); 55 GC3Dboolean isVertexArrayOES(WebGLVertexArrayObjectOES*);
55 void bindVertexArrayOES(WebGLVertexArrayObjectOES*, ExceptionCode&); 56 void bindVertexArrayOES(WebGLVertexArrayObjectOES*, ExceptionCode&);
56 57
57 private: 58 private:
58 OESVertexArrayObject(WebGLRenderingContext*); 59 OESVertexArrayObject(WebGLRenderingContext*);
59 }; 60 };
60 61
61 } // namespace WebCore 62 } // namespace WebCore
62 63
63 #endif // OESVertexArrayObject_h 64 #endif // OESVertexArrayObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698