Lines Matching refs:GraphicsContext3D
30 #include "core/platform/graphics/GraphicsContext3D.h"
68 void getDrawingParameters(DrawingBuffer* drawingBuffer, WebKit::WebGraphicsContext3D* graphicsContext3D,
77 *width = graphicsContext3D->width();
78 *height = graphicsContext3D->height();
84 GraphicsContext3D::GraphicsContext3D(PassOwnPtr<WebKit::WebGraphicsContext3D> webContext, bool preserveDrawingBuffer)
96 GraphicsContext3D::GraphicsContext3D(PassOwnPtr<WebKit::WebGraphicsContext3DProvider> provider, bool preserveDrawingBuffer)
108 GraphicsContext3D::~GraphicsContext3D()
119 // Macros to assist in delegating from GraphicsContext3D to
123 void GraphicsContext3D::name() \
129 rt GraphicsContext3D::name() \
135 void GraphicsContext3D::name(t1 a1) \
141 rt GraphicsContext3D::name(t1 a1) \
147 void GraphicsContext3D::name(t1 a1, t2 a2) \
153 rt GraphicsContext3D::name(t1 a1, t2 a2) \
159 void GraphicsContext3D::name(t1 a1, t2 a2, t3 a3) \
165 rt GraphicsContext3D::name(t1 a1, t2 a2, t3 a3) \
171 void GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4) \
177 rt GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4) \
183 void GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5) \
189 void GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5, t6 a6) \
195 rt GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5, t6 a6) \
201 void GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5, t6 a6, t7 a7) \
207 rt GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5, t6 a6, t7 a7) \
213 void GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5, t6 a6, t7 a7, t8 a8) \
219 void GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5, t6 a6, t7 a7, t8 a8, t9 a9) \
225 rt GraphicsContext3D::name(t1 a1, t2 a2, t3 a3, t4 a4, t5 a5, t6 a6, t7 a7, t8 a8, t9 a9) \
232 GraphicsContext3DContextLostCallbackAdapter(PassOwnPtr<GraphicsContext3D::ContextLostCallback> callback)
242 OwnPtr<GraphicsContext3D::ContextLostCallback> m_contextLostCallback;
247 GraphicsContext3DErrorMessageCallbackAdapter(PassOwnPtr<GraphicsContext3D::ErrorMessageCallback> callback)
257 OwnPtr<GraphicsContext3D::ErrorMessageCallback> m_errorMessageCallback;
260 void GraphicsContext3D::setContextLostCallback(PassOwnPtr<GraphicsContext3D::ContextLostCallback> callback)
268 void GraphicsContext3D::setErrorMessageCallback(PassOwnPtr<GraphicsContext3D::ErrorMessageCallback> callback)
276 PassRefPtr<GraphicsContext3D> GraphicsContext3D::create(GraphicsContext3D::Attributes attrs)
293 return GraphicsContext3D::createGraphicsContextFromWebContext(webContext.release(), attrs.preserveDrawingBuffer);
296 PassRefPtr<GraphicsContext3D> GraphicsContext3D::createGraphicsContextFromProvider(PassOwnPtr<WebKit::WebGraphicsContext3DProvider> provider, bool preserveDrawingBuffer)
298 RefPtr<GraphicsContext3D> context = adoptRef(new GraphicsContext3D(provider, preserveDrawingBuffer));
302 PassRefPtr<GraphicsContext3D> GraphicsContext3D::createGraphicsContextFromWebContext(PassOwnPtr<WebKit::WebGraphicsContext3D> webContext, bool preserveDrawingBuffer)
304 RefPtr<GraphicsContext3D> context = adoptRef(new GraphicsContext3D(webContext, preserveDrawingBuffer));
338 GrContext* GraphicsContext3D::grContext()
369 void GraphicsContext3D::bindAttribLocation(Platform3DObject program, GC3Duint index, const String& name)
384 void GraphicsContext3D::bufferData(GC3Denum target, GC3Dsizeiptr size, GC3Denum usage)
423 bool GraphicsContext3D::getActiveAttrib(Platform3DObject program, GC3Duint index, ActiveInfo& info)
434 bool GraphicsContext3D::getActiveUniform(Platform3DObject program, GC3Duint index, ActiveInfo& info)
447 GC3Dint GraphicsContext3D::getAttribLocation(Platform3DObject program, const String& name)
455 GraphicsContext3D::Attributes GraphicsContext3D::getContextAttributes()
458 GraphicsContext3D::Attributes attributes;
486 GC3Dint GraphicsContext3D::getUniformLocation(Platform3DObject program, const String& name)
506 void GraphicsContext3D::pixelStorei(GC3Denum pname, GC3Dint param)
522 void GraphicsContext3D::shaderSource(Platform3DObject shader, const String& string)
574 void GraphicsContext3D::reshape(int width, int height)
582 void GraphicsContext3D::markContextChanged()
587 bool GraphicsContext3D::layerComposited() const
592 void GraphicsContext3D::markLayerComposited()
597 void GraphicsContext3D::paintRenderingResultsToCanvas(ImageBuffer* imageBuffer, DrawingBuffer* drawingBuffer)
605 PassRefPtr<ImageData> GraphicsContext3D::paintRenderingResultsToImageData(DrawingBuffer* drawingBuffer)
624 void GraphicsContext3D::readBackFramebuffer(unsigned char* pixels, int width, int height, ReadbackOrder readbackOrder, AlphaOp op)
671 Extensions3D* GraphicsContext3D::getExtensions()
678 bool GraphicsContext3D::texImage2DResourceSafe(GC3Denum target, GC3Dint level, GC3Denum internalformat, GC3Dsizei width, GC3Dsizei height, GC3Dint border, GC3Denum format, GC3Denum type, GC3Dint unpackAlignment)
685 bool GraphicsContext3D::computeFormatAndTypeParameters(GC3Denum format,
691 case GraphicsContext3D::ALPHA:
692 case GraphicsContext3D::LUMINANCE:
693 case GraphicsContext3D::DEPTH_COMPONENT:
694 case GraphicsContext3D::DEPTH_STENCIL:
697 case GraphicsContext3D::LUMINANCE_ALPHA:
700 case GraphicsContext3D::RGB:
703 case GraphicsContext3D::RGBA:
711 case GraphicsContext3D::UNSIGNED_BYTE:
714 case GraphicsContext3D::UNSIGNED_SHORT:
717 case GraphicsContext3D::UNSIGNED_SHORT_5_6_5:
718 case GraphicsContext3D::UNSIGNED_SHORT_4_4_4_4:
719 case GraphicsContext3D::UNSIGNED_SHORT_5_5_5_1:
723 case GraphicsContext3D::UNSIGNED_INT_24_8:
724 case GraphicsContext3D::UNSIGNED_INT:
727 case GraphicsContext3D::FLOAT: // OES_texture_float
730 case GraphicsContext3D::HALF_FLOAT_OES: // OES_texture_half_float
739 GC3Denum GraphicsContext3D::computeImageSizeInBytes(GC3Denum format, GC3Denum type, GC3Dsizei width, GC3Dsizei height, GC3Dint alignment,
745 return GraphicsContext3D::INVALID_VALUE;
748 return GraphicsContext3D::INVALID_ENUM;
753 return GraphicsContext3D::NO_ERROR;
758 return GraphicsContext3D::INVALID_VALUE;
770 return GraphicsContext3D::INVALID_VALUE;
774 return GraphicsContext3D::NO_ERROR;
777 GraphicsContext3D::ImageExtractor::ImageExtractor(Image* image, ImageHtmlDomSource imageHtmlDomSource, bool premultiplyAlpha, bool ignoreGammaAndColorProfile)
784 GraphicsContext3D::ImageExtractor::~ImageExtractor()
790 bool GraphicsContext3D::ImageExtractor::extractImage(bool premultiplyAlpha, bool ignoreGammaAndColorProfile)
842 unsigned GraphicsContext3D::getClearBitsByFormat(GC3Denum format)
845 case GraphicsContext3D::ALPHA:
846 case GraphicsContext3D::LUMINANCE:
847 case GraphicsContext3D::LUMINANCE_ALPHA:
848 case GraphicsContext3D::RGB:
849 case GraphicsContext3D::RGB565:
850 case GraphicsContext3D::RGBA:
851 case GraphicsContext3D::RGBA4:
852 case GraphicsContext3D::RGB5_A1:
853 return GraphicsContext3D::COLOR_BUFFER_BIT;
854 case GraphicsContext3D::DEPTH_COMPONENT16:
855 case GraphicsContext3D::DEPTH_COMPONENT:
856 return GraphicsContext3D::DEPTH_BUFFER_BIT;
857 case GraphicsContext3D::STENCIL_INDEX8:
858 return GraphicsContext3D::STENCIL_BUFFER_BIT;
859 case GraphicsContext3D::DEPTH_STENCIL:
860 return GraphicsContext3D::DEPTH_BUFFER_BIT | GraphicsContext3D::STENCIL_BUFFER_BIT;
866 unsigned GraphicsContext3D::getChannelBitsByFormat(GC3Denum format)
869 case GraphicsContext3D::ALPHA:
871 case GraphicsContext3D::LUMINANCE:
873 case GraphicsContext3D::LUMINANCE_ALPHA:
875 case GraphicsContext3D::RGB:
876 case GraphicsContext3D::RGB565:
878 case GraphicsContext3D::RGBA:
879 case GraphicsContext3D::RGBA4:
880 case GraphicsContext3D::RGB5_A1:
882 case GraphicsContext3D::DEPTH_COMPONENT16:
883 case GraphicsContext3D::DEPTH_COMPONENT:
885 case GraphicsContext3D::STENCIL_INDEX8:
887 case GraphicsContext3D::DEPTH_STENCIL:
894 void GraphicsContext3D::paintFramebufferToCanvas(int framebuffer, int width, int height, bool premultiplyAlpha, ImageBuffer* imageBuffer)
956 void GraphicsContext3D::initializeExtensions()
967 String extensionsString = m_impl->getString(GraphicsContext3D::EXTENSIONS);
975 bool GraphicsContext3D::supportsExtension(const String& name)
982 bool GraphicsContext3D::ensureExtensionEnabled(const String& name)
1002 bool GraphicsContext3D::isExtensionEnabled(const String& name)
1009 void GraphicsContext3D::flipVertically(uint8_t* framebuffer, int width, int height)