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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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/WebGLDrawBuffers.h ('k') | Source/core/html/canvas/WebGLLoseContext.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 20 matching lines...) Expand all
31 #include "core/html/canvas/WebGLSharedObject.h" 31 #include "core/html/canvas/WebGLSharedObject.h"
32 #include "wtf/PassRefPtr.h" 32 #include "wtf/PassRefPtr.h"
33 #include "wtf/RefCounted.h" 33 #include "wtf/RefCounted.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class WebGLRenderbuffer; 37 class WebGLRenderbuffer;
38 class WebGLTexture; 38 class WebGLTexture;
39 39
40 class WebGLFramebuffer FINAL : public WebGLContextObject, public ScriptWrappable { 40 class WebGLFramebuffer FINAL : public WebGLContextObject, public ScriptWrappable {
41 DEFINE_WRAPPERTYPEINFO();
41 public: 42 public:
42 class WebGLAttachment : public RefCountedWillBeGarbageCollectedFinalized<Web GLAttachment> { 43 class WebGLAttachment : public RefCountedWillBeGarbageCollectedFinalized<Web GLAttachment> {
43 public: 44 public:
44 virtual ~WebGLAttachment(); 45 virtual ~WebGLAttachment();
45 46
46 virtual GLsizei width() const = 0; 47 virtual GLsizei width() const = 0;
47 virtual GLsizei height() const = 0; 48 virtual GLsizei height() const = 0;
48 virtual GLenum format() const = 0; 49 virtual GLenum format() const = 0;
49 // For texture attachment, type() returns the type of the attached textu re. 50 // For texture attachment, type() returns the type of the attached textu re.
50 // For renderbuffer attachment, the type of the renderbuffer may vary wi th GL implementation. 51 // For renderbuffer attachment, the type of the renderbuffer may vary wi th GL implementation.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 128
128 bool m_hasEverBeenBound; 129 bool m_hasEverBeenBound;
129 130
130 Vector<GLenum> m_drawBuffers; 131 Vector<GLenum> m_drawBuffers;
131 Vector<GLenum> m_filteredDrawBuffers; 132 Vector<GLenum> m_filteredDrawBuffers;
132 }; 133 };
133 134
134 } // namespace blink 135 } // namespace blink
135 136
136 #endif // WebGLFramebuffer_h 137 #endif // WebGLFramebuffer_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLDrawBuffers.h ('k') | Source/core/html/canvas/WebGLLoseContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698