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

Side by Side Diff: Source/core/html/canvas/WebGLFramebuffer.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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // To avoid confusion, it would be better to not implement type() for re nderbuffer attachment and 51 // To avoid confusion, it would be better to not implement type() for re nderbuffer attachment and
52 // we should always use the internalformat of the renderbuffer and avoid using type() API. 52 // we should always use the internalformat of the renderbuffer and avoid using type() API.
53 virtual GLenum type() const = 0; 53 virtual GLenum type() const = 0;
54 virtual WebGLSharedObject* object() const = 0; 54 virtual WebGLSharedObject* object() const = 0;
55 virtual bool isSharedObject(WebGLSharedObject*) const = 0; 55 virtual bool isSharedObject(WebGLSharedObject*) const = 0;
56 virtual bool valid() const = 0; 56 virtual bool valid() const = 0;
57 virtual void onDetached(blink::WebGraphicsContext3D*) = 0; 57 virtual void onDetached(blink::WebGraphicsContext3D*) = 0;
58 virtual void attach(blink::WebGraphicsContext3D*, GLenum attachment) = 0 ; 58 virtual void attach(blink::WebGraphicsContext3D*, GLenum attachment) = 0 ;
59 virtual void unattach(blink::WebGraphicsContext3D*, GLenum attachment) = 0; 59 virtual void unattach(blink::WebGraphicsContext3D*, GLenum attachment) = 0;
60 60
61 virtual void trace(Visitor*) { } 61 DEFINE_INLINE_VIRTUAL_TRACE() { }
62 62
63 protected: 63 protected:
64 WebGLAttachment(); 64 WebGLAttachment();
65 }; 65 };
66 66
67 virtual ~WebGLFramebuffer(); 67 virtual ~WebGLFramebuffer();
68 68
69 static PassRefPtrWillBeRawPtr<WebGLFramebuffer> create(WebGLRenderingContext Base*); 69 static PassRefPtrWillBeRawPtr<WebGLFramebuffer> create(WebGLRenderingContext Base*);
70 70
71 void setAttachmentForBoundFramebuffer(GLenum attachment, GLenum texTarget, W ebGLTexture*, GLint level); 71 void setAttachmentForBoundFramebuffer(GLenum attachment, GLenum texTarget, W ebGLTexture*, GLint level);
(...skipping 22 matching lines...) Expand all
94 94
95 void setHasEverBeenBound() { m_hasEverBeenBound = true; } 95 void setHasEverBeenBound() { m_hasEverBeenBound = true; }
96 96
97 bool hasStencilBuffer() const; 97 bool hasStencilBuffer() const;
98 98
99 // Wrapper for drawBuffersEXT/drawBuffersARB to work around a driver bug. 99 // Wrapper for drawBuffersEXT/drawBuffersARB to work around a driver bug.
100 void drawBuffers(const Vector<GLenum>& bufs); 100 void drawBuffers(const Vector<GLenum>& bufs);
101 101
102 GLenum getDrawBuffer(GLenum); 102 GLenum getDrawBuffer(GLenum);
103 103
104 virtual void trace(Visitor*) override; 104 DECLARE_VIRTUAL_TRACE();
105 105
106 protected: 106 protected:
107 explicit WebGLFramebuffer(WebGLRenderingContextBase*); 107 explicit WebGLFramebuffer(WebGLRenderingContextBase*);
108 108
109 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) override; 109 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) override;
110 110
111 private: 111 private:
112 WebGLAttachment* getAttachment(GLenum) const; 112 WebGLAttachment* getAttachment(GLenum) const;
113 bool isAttachmentComplete(WebGLAttachment* attachedObject, GLenum attachment , const char** reason) const; 113 bool isAttachmentComplete(WebGLAttachment* attachedObject, GLenum attachment , const char** reason) const;
114 114
(...skipping 12 matching lines...) Expand all
127 127
128 bool m_hasEverBeenBound; 128 bool m_hasEverBeenBound;
129 129
130 Vector<GLenum> m_drawBuffers; 130 Vector<GLenum> m_drawBuffers;
131 Vector<GLenum> m_filteredDrawBuffers; 131 Vector<GLenum> m_filteredDrawBuffers;
132 }; 132 };
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // WebGLFramebuffer_h 136 #endif // WebGLFramebuffer_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLExtension.cpp ('k') | Source/core/html/canvas/WebGLFramebuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698