Changeset 58140 in webkit
- Timestamp:
- Apr 22, 2010 7:07:07 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r58136 r58140 1 2010-04-22 Zhenyao Mo <zmo@google.com> 2 3 Reviewed by Darin Fisher. 4 5 Add isGLES2Compliant to GraphicsContext3D 6 https://bugs.webkit.org/show_bug.cgi?id=37872 7 8 * html/canvas/WebGLRenderingContext.cpp: Add isGLES2Compliant(). 9 (WebCore::WebGLRenderingContext::isGLES2Compliant): 10 * html/canvas/WebGLRenderingContext.h: Ditto. 11 * platform/graphics/GraphicsContext3D.h: Ditto. 12 * platform/graphics/mac/GraphicsContext3DMac.cpp: Ditto. 13 (WebCore::GraphicsContext3D::isGLES2Compliant): 14 1 15 2010-04-22 Fumitoshi Ukai <ukai@chromium.org> 2 16 -
trunk/WebCore/html/canvas/WebGLRenderingContext.cpp
r58103 r58140 2822 2822 } 2823 2823 2824 bool WebGLRenderingContext::isGLES2Compliant() 2825 { 2826 return m_context->isGLES2Compliant(); 2827 } 2828 2824 2829 } // namespace WebCore 2825 2830 -
trunk/WebCore/html/canvas/WebGLRenderingContext.h
r57574 r58140 299 299 markContextChanged(); 300 300 } 301 302 bool isGLES2Compliant(); 301 303 302 304 // Basic validation of count and offset against number of elements in element array buffer -
trunk/WebCore/platform/graphics/GraphicsContext3D.h
r57747 r58140 686 686 void synthesizeGLError(unsigned long error); 687 687 688 bool isGLES2Compliant(); 689 688 690 private: 689 691 GraphicsContext3D(Attributes attrs, HostWindow* hostWindow); -
trunk/WebCore/platform/graphics/mac/GraphicsContext3DMac.cpp
r58102 r58140 234 234 void GraphicsContext3D::endPaint() 235 235 { 236 } 237 238 bool GraphicsContext3D::isGLES2Compliant() 239 { 240 return false; 236 241 } 237 242 -
trunk/WebKit/chromium/ChangeLog
r58111 r58140 1 2010-04-22 Zhenyao Mo <zmo@google.com> 2 3 Reviewed by Darin Fisher. 4 5 Add isGLES2Compliant to GraphicsContext3D 6 https://bugs.webkit.org/show_bug.cgi?id=37872 7 8 * public/WebGraphicsContext3D.h: Add isGLES2Compliant(). 9 * src/GraphicsContext3D.cpp: Ditto. 10 * src/WebGraphicsContext3DDefaultImpl.cpp: Ditto. 11 (WebKit::WebGraphicsContext3DDefaultImpl::isGLES2Compliant): 12 * src/WebGraphicsContext3DDefaultImpl.h: Ditto. 13 1 14 2010-04-22 Dave Moore <davemoore@chromium.org> 2 15 -
trunk/WebKit/chromium/public/WebGraphicsContext3D.h
r56381 r58140 100 100 virtual void reshape(int width, int height) = 0; 101 101 102 // Query whether it is built on top of compliant GLES2 implementation. 103 virtual bool isGLES2Compliant() = 0; 104 102 105 // Helper for software compositing path. Reads back the frame buffer into 103 106 // the memory region pointed to by "pixels" with size "bufferSize". It is -
trunk/WebKit/chromium/src/GraphicsContext3D.cpp
r57771 r58140 111 111 void beginPaint(WebGLRenderingContext* context); 112 112 void endPaint(); 113 114 bool isGLES2Compliant(); 113 115 114 116 //---------------------------------------------------------------------- … … 618 620 DELEGATE_TO_IMPL_1R(sizeInBytes, int, int) 619 621 622 DELEGATE_TO_IMPL_R(isGLES2Compliant, bool) 623 620 624 DELEGATE_TO_IMPL_1(activeTexture, unsigned long) 621 625 DELEGATE_TO_IMPL_2_X12(attachShader, WebGLProgram*, WebGLShader*) … … 1291 1295 1292 1296 DELEGATE_TO_INTERNAL_1(synthesizeGLError, unsigned long) 1297 DELEGATE_TO_INTERNAL_R(isGLES2Compliant, bool) 1293 1298 1294 1299 } // namespace WebCore -
trunk/WebKit/chromium/src/WebGraphicsContext3DDefaultImpl.cpp
r58102 r58140 465 465 } 466 466 467 bool WebGraphicsContext3DDefaultImpl::isGLES2Compliant() 468 { 469 return false; 470 } 471 467 472 static int createTextureObject(GLenum target) 468 473 { -
trunk/WebKit/chromium/src/WebGraphicsContext3DDefaultImpl.h
r56872 r58140 76 76 virtual int sizeInBytes(int type); 77 77 78 virtual bool isGLES2Compliant(); 79 78 80 virtual void reshape(int width, int height); 79 81
Note: See TracChangeset
for help on using the changeset viewer.