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

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

Issue 1412613004: Set attachment for bound framebuffer in FramebufferTextureLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix WebGLTextureAttachment::attach Created 5 years, 1 month 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 protected: 61 protected:
62 WebGLAttachment(); 62 WebGLAttachment();
63 }; 63 };
64 64
65 ~WebGLFramebuffer() override; 65 ~WebGLFramebuffer() override;
66 66
67 static WebGLFramebuffer* create(WebGLRenderingContextBase*); 67 static WebGLFramebuffer* create(WebGLRenderingContextBase*);
68 68
69 Platform3DObject object() const { return m_object; } 69 Platform3DObject object() const { return m_object; }
70 70
71 void setAttachmentForBoundFramebuffer(GLenum target, GLenum attachment, GLen um texTarget, WebGLTexture*, GLint level); 71 void setAttachmentForBoundFramebuffer(GLenum target, GLenum attachment, GLen um texTarget, WebGLTexture*, GLint level, GLint layer);
72 void setAttachmentForBoundFramebuffer(GLenum target, GLenum attachment, WebG LRenderbuffer*); 72 void setAttachmentForBoundFramebuffer(GLenum target, GLenum attachment, WebG LRenderbuffer*);
73 // If an object is attached to the currently bound framebuffer, remove it. 73 // If an object is attached to the currently bound framebuffer, remove it.
74 void removeAttachmentFromBoundFramebuffer(GLenum target, WebGLSharedObject*) ; 74 void removeAttachmentFromBoundFramebuffer(GLenum target, WebGLSharedObject*) ;
75 // If a given attachment point for the currently bound framebuffer is not nu ll, remove the attached object. 75 // If a given attachment point for the currently bound framebuffer is not nu ll, remove the attached object.
76 void removeAttachmentFromBoundFramebuffer(GLenum target, GLenum attachment); 76 void removeAttachmentFromBoundFramebuffer(GLenum target, GLenum attachment);
77 WebGLSharedObject* getAttachmentObject(GLenum) const; 77 WebGLSharedObject* getAttachmentObject(GLenum) const;
78 78
79 GLenum colorBufferFormat() const; 79 GLenum colorBufferFormat() const;
80 80
81 // This should always be called before drawArray, drawElements, clear, 81 // This should always be called before drawArray, drawElements, clear,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 Vector<GLenum> m_drawBuffers; 142 Vector<GLenum> m_drawBuffers;
143 Vector<GLenum> m_filteredDrawBuffers; 143 Vector<GLenum> m_filteredDrawBuffers;
144 144
145 GLenum m_readBuffer; 145 GLenum m_readBuffer;
146 }; 146 };
147 147
148 } // namespace blink 148 } // namespace blink
149 149
150 #endif // WebGLFramebuffer_h 150 #endif // WebGLFramebuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698