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

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

Issue 932403002: InlinedVisitor: Migrate html to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/canvas/WebGLFramebuffer.cpp ('k') | Source/core/html/canvas/WebGLProgram.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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void onDetached(blink::WebGraphicsContext3D*); 55 void onDetached(blink::WebGraphicsContext3D*);
56 56
57 // This indicates whether the client side issue a delete call already, not 57 // This indicates whether the client side issue a delete call already, not
58 // whether the OpenGL resource is deleted. 58 // whether the OpenGL resource is deleted.
59 // object()==0 indicates the OpenGL resource is deleted. 59 // object()==0 indicates the OpenGL resource is deleted.
60 bool isDeleted() { return m_deleted; } 60 bool isDeleted() { return m_deleted; }
61 61
62 // True if this object belongs to the group or context. 62 // True if this object belongs to the group or context.
63 virtual bool validate(const WebGLContextGroup*, const WebGLRenderingContextB ase*) const = 0; 63 virtual bool validate(const WebGLContextGroup*, const WebGLRenderingContextB ase*) const = 0;
64 64
65 virtual void trace(Visitor*) { } 65 DEFINE_INLINE_VIRTUAL_TRACE() { }
66 66
67 protected: 67 protected:
68 explicit WebGLObject(WebGLRenderingContextBase*); 68 explicit WebGLObject(WebGLRenderingContextBase*);
69 69
70 // setObject should be only called once right after creating a WebGLObject. 70 // setObject should be only called once right after creating a WebGLObject.
71 void setObject(Platform3DObject); 71 void setObject(Platform3DObject);
72 72
73 // deleteObjectImpl should be only called once to delete the OpenGL resource . 73 // deleteObjectImpl should be only called once to delete the OpenGL resource .
74 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) = 0; 74 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) = 0;
75 75
76 virtual bool hasGroupOrContext() const = 0; 76 virtual bool hasGroupOrContext() const = 0;
77 77
78 void detach(); 78 void detach();
79 void detachAndDeleteObject(); 79 void detachAndDeleteObject();
80 80
81 virtual blink::WebGraphicsContext3D* getAWebGraphicsContext3D() const = 0; 81 virtual blink::WebGraphicsContext3D* getAWebGraphicsContext3D() const = 0;
82 82
83 private: 83 private:
84 Platform3DObject m_object; 84 Platform3DObject m_object;
85 unsigned m_attachmentCount; 85 unsigned m_attachmentCount;
86 bool m_deleted; 86 bool m_deleted;
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif // WebGLObject_h 91 #endif // WebGLObject_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLFramebuffer.cpp ('k') | Source/core/html/canvas/WebGLProgram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698