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

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

Issue 241113002: Remove some dead code from html/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 void setAttachmentForBoundFramebuffer(GLenum attachment, GLenum texTarget, W ebGLTexture*, GLint level); 69 void setAttachmentForBoundFramebuffer(GLenum attachment, GLenum texTarget, W ebGLTexture*, GLint level);
70 void setAttachmentForBoundFramebuffer(GLenum attachment, WebGLRenderbuffer*) ; 70 void setAttachmentForBoundFramebuffer(GLenum attachment, WebGLRenderbuffer*) ;
71 // If an object is attached to the currently bound framebuffer, remove it. 71 // If an object is attached to the currently bound framebuffer, remove it.
72 void removeAttachmentFromBoundFramebuffer(WebGLSharedObject*); 72 void removeAttachmentFromBoundFramebuffer(WebGLSharedObject*);
73 // If a given attachment point for the currently bound framebuffer is not nu ll, remove the attached object. 73 // If a given attachment point for the currently bound framebuffer is not nu ll, remove the attached object.
74 void removeAttachmentFromBoundFramebuffer(GLenum); 74 void removeAttachmentFromBoundFramebuffer(GLenum);
75 WebGLSharedObject* getAttachmentObject(GLenum) const; 75 WebGLSharedObject* getAttachmentObject(GLenum) const;
76 76
77 GLenum colorBufferFormat() const; 77 GLenum colorBufferFormat() const;
78 GLsizei colorBufferWidth() const;
79 GLsizei colorBufferHeight() const;
80 78
81 // This should always be called before drawArray, drawElements, clear, 79 // This should always be called before drawArray, drawElements, clear,
82 // readPixels, copyTexImage2D, copyTexSubImage2D if this framebuffer is 80 // readPixels, copyTexImage2D, copyTexSubImage2D if this framebuffer is
83 // currently bound. 81 // currently bound.
84 // Return false if the framebuffer is incomplete. 82 // Return false if the framebuffer is incomplete.
85 bool onAccess(blink::WebGraphicsContext3D*, const char** reason); 83 bool onAccess(blink::WebGraphicsContext3D*, const char** reason);
86 84
87 // Software version of glCheckFramebufferStatus(), except that when 85 // Software version of glCheckFramebufferStatus(), except that when
88 // FRAMEBUFFER_COMPLETE is returned, it is still possible for 86 // FRAMEBUFFER_COMPLETE is returned, it is still possible for
89 // glCheckFramebufferStatus() to return FRAMEBUFFER_UNSUPPORTED, 87 // glCheckFramebufferStatus() to return FRAMEBUFFER_UNSUPPORTED,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 123
126 bool m_hasEverBeenBound; 124 bool m_hasEverBeenBound;
127 125
128 Vector<GLenum> m_drawBuffers; 126 Vector<GLenum> m_drawBuffers;
129 Vector<GLenum> m_filteredDrawBuffers; 127 Vector<GLenum> m_filteredDrawBuffers;
130 }; 128 };
131 129
132 } // namespace WebCore 130 } // namespace WebCore
133 131
134 #endif // WebGLFramebuffer_h 132 #endif // WebGLFramebuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698