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

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

Issue 894143002: Adding Blink bindings for WebGL 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed accidentally added scratch file Created 5 years, 10 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
« no previous file with comments | « Source/core/html/canvas/WebGLSampler.idl ('k') | Source/core/html/canvas/WebGLSync.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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple 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 25 matching lines...) Expand all
36 // WebGLSharedObject the base class for objects that can be shared by multiple 36 // WebGLSharedObject the base class for objects that can be shared by multiple
37 // WebGLRenderingContexts. 37 // WebGLRenderingContexts.
38 class WebGLSharedObject : public WebGLObject { 38 class WebGLSharedObject : public WebGLObject {
39 public: 39 public:
40 virtual ~WebGLSharedObject(); 40 virtual ~WebGLSharedObject();
41 41
42 WebGLContextGroup* contextGroup() const { return m_contextGroup; } 42 WebGLContextGroup* contextGroup() const { return m_contextGroup; }
43 43
44 virtual bool isBuffer() const { return false; } 44 virtual bool isBuffer() const { return false; }
45 virtual bool isProgram() const { return false; } 45 virtual bool isProgram() const { return false; }
46 virtual bool isQuery() const { return false; }
46 virtual bool isRenderbuffer() const { return false; } 47 virtual bool isRenderbuffer() const { return false; }
48 virtual bool isSampler() const { return false; }
47 virtual bool isShader() const { return false; } 49 virtual bool isShader() const { return false; }
50 virtual bool isSync() const { return false; }
48 virtual bool isTexture() const { return false; } 51 virtual bool isTexture() const { return false; }
52 virtual bool isTransformFeedback() const { return false; }
49 53
50 virtual bool validate(const WebGLContextGroup* contextGroup, const WebGLRend eringContextBase*) const override final 54 virtual bool validate(const WebGLContextGroup* contextGroup, const WebGLRend eringContextBase*) const override final
51 { 55 {
52 return contextGroup == m_contextGroup; 56 return contextGroup == m_contextGroup;
53 } 57 }
54 58
55 void detachContextGroup(); 59 void detachContextGroup();
56 60
57 protected: 61 protected:
58 explicit WebGLSharedObject(WebGLRenderingContextBase*); 62 explicit WebGLSharedObject(WebGLRenderingContextBase*);
59 63
60 virtual bool hasGroupOrContext() const override final 64 virtual bool hasGroupOrContext() const override final
61 { 65 {
62 return m_contextGroup; 66 return m_contextGroup;
63 } 67 }
64 68
65 virtual blink::WebGraphicsContext3D* getAWebGraphicsContext3D() const overri de final; 69 virtual blink::WebGraphicsContext3D* getAWebGraphicsContext3D() const overri de final;
66 70
67 private: 71 private:
68 WebGLContextGroup* m_contextGroup; 72 WebGLContextGroup* m_contextGroup;
69 }; 73 };
70 74
71 } // namespace blink 75 } // namespace blink
72 76
73 #endif // WebGLSharedObject_h 77 #endif // WebGLSharedObject_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLSampler.idl ('k') | Source/core/html/canvas/WebGLSync.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698