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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.h

Issue 2671553003: Remove uses of VisitDOMWrapper (Closed)
Patch Set: Add DependentLifetime when removing Custom=VisitDOMWrapper Created 3 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
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void readBuffer(const GLenum colorBuffer) { m_readBuffer = colorBuffer; } 104 void readBuffer(const GLenum colorBuffer) { m_readBuffer = colorBuffer; }
105 105
106 GLenum getReadBuffer() const { return m_readBuffer; } 106 GLenum getReadBuffer() const { return m_readBuffer; }
107 107
108 virtual void visitChildDOMWrappers(v8::Isolate*,
109 const v8::Persistent<v8::Object>&);
110
111 DECLARE_VIRTUAL_TRACE(); 108 DECLARE_VIRTUAL_TRACE();
112 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 109 DECLARE_VIRTUAL_TRACE_WRAPPERS();
113 110
114 protected: 111 protected:
115 explicit WebGLFramebuffer(WebGLRenderingContextBase*); 112 explicit WebGLFramebuffer(WebGLRenderingContextBase*);
116 113
117 bool hasObject() const override { return m_object != 0; } 114 bool hasObject() const override { return m_object != 0; }
118 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; 115 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override;
119 116
120 private: 117 private:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 151
155 Vector<GLenum> m_drawBuffers; 152 Vector<GLenum> m_drawBuffers;
156 Vector<GLenum> m_filteredDrawBuffers; 153 Vector<GLenum> m_filteredDrawBuffers;
157 154
158 GLenum m_readBuffer; 155 GLenum m_readBuffer;
159 }; 156 };
160 157
161 } // namespace blink 158 } // namespace blink
162 159
163 #endif // WebGLFramebuffer_h 160 #endif // WebGLFramebuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698