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

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

Issue 14860016: Implement OES_texture_float_linear and OES_texture_half_float_linear extensions in WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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 29 matching lines...) Expand all
40 40
41 static PassRefPtr<WebGLTexture> create(WebGLRenderingContext*); 41 static PassRefPtr<WebGLTexture> create(WebGLRenderingContext*);
42 42
43 void setTarget(GC3Denum target, GC3Dint maxLevel); 43 void setTarget(GC3Denum target, GC3Dint maxLevel);
44 void setParameteri(GC3Denum pname, GC3Dint param); 44 void setParameteri(GC3Denum pname, GC3Dint param);
45 void setParameterf(GC3Denum pname, GC3Dfloat param); 45 void setParameterf(GC3Denum pname, GC3Dfloat param);
46 46
47 GC3Denum getTarget() const { return m_target; } 47 GC3Denum getTarget() const { return m_target; }
48 48
49 int getMinFilter() const { return m_minFilter; } 49 int getMinFilter() const { return m_minFilter; }
50 int getMagFilter() const { return m_magFilter; };
51 int getWrapS() const { return m_wrapS; }
52 int getWrapT() const { return m_wrapT; }
50 53
51 void setLevelInfo(GC3Denum target, GC3Dint level, GC3Denum internalFormat, G C3Dsizei width, GC3Dsizei height, GC3Denum type); 54 void setLevelInfo(GC3Denum target, GC3Dint level, GC3Denum internalFormat, G C3Dsizei width, GC3Dsizei height, GC3Denum type);
52 55
53 bool canGenerateMipmaps(); 56 bool canGenerateMipmaps();
54 // Generate all level information. 57 // Generate all level information.
55 void generateMipmapLevelInfo(); 58 void generateMipmapLevelInfo();
56 59
57 GC3Denum getInternalFormat(GC3Denum target, GC3Dint level) const; 60 GC3Denum getInternalFormat(GC3Denum target, GC3Dint level) const;
58 GC3Denum getType(GC3Denum target, GC3Dint level) const; 61 GC3Denum getType(GC3Denum target, GC3Dint level) const;
59 GC3Dsizei getWidth(GC3Denum target, GC3Dint level) const; 62 GC3Dsizei getWidth(GC3Denum target, GC3Dint level) const;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 Vector<Vector<LevelInfo> > m_info; 125 Vector<Vector<LevelInfo> > m_info;
123 126
124 bool m_isNPOT; 127 bool m_isNPOT;
125 bool m_isComplete; 128 bool m_isComplete;
126 bool m_needToUseBlackTexture; 129 bool m_needToUseBlackTexture;
127 }; 130 };
128 131
129 } // namespace WebCore 132 } // namespace WebCore
130 133
131 #endif // WebGLTexture_h 134 #endif // WebGLTexture_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698