OLD | NEW |
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 class CanvasRenderingContext; | 88 class CanvasRenderingContext; |
89 class DrawingBuffer; | 89 class DrawingBuffer; |
90 class Extensions3D; | 90 class Extensions3D; |
91 #if PLATFORM(MAC) || PLATFORM(GTK) | 91 #if PLATFORM(MAC) || PLATFORM(GTK) |
92 class Extensions3DOpenGL; | 92 class Extensions3DOpenGL; |
93 #elif PLATFORM(QT) | 93 #elif PLATFORM(QT) |
94 class Extensions3DQt; | 94 class Extensions3DQt; |
95 #endif | 95 #endif |
96 class HostWindow; | 96 class HostWindow; |
97 class Image; | 97 class Image; |
| 98 class ImageBuffer; |
98 class ImageData; | 99 class ImageData; |
99 #if USE(CAIRO) | 100 #if USE(CAIRO) |
100 class PlatformContextCairo; | 101 class PlatformContextCairo; |
101 #endif | 102 #endif |
102 | 103 |
103 struct ActiveInfo { | 104 struct ActiveInfo { |
104 String name; | 105 String name; |
105 GC3Denum type; | 106 GC3Denum type; |
106 GC3Dint size; | 107 GC3Dint size; |
107 }; | 108 }; |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 void vertexAttrib4f(GC3Duint index, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z, G
C3Dfloat w); | 773 void vertexAttrib4f(GC3Duint index, GC3Dfloat x, GC3Dfloat y, GC3Dfloat z, G
C3Dfloat w); |
773 void vertexAttrib4fv(GC3Duint index, GC3Dfloat* values); | 774 void vertexAttrib4fv(GC3Duint index, GC3Dfloat* values); |
774 void vertexAttribPointer(GC3Duint index, GC3Dint size, GC3Denum type, GC3Dbo
olean normalized, | 775 void vertexAttribPointer(GC3Duint index, GC3Dint size, GC3Denum type, GC3Dbo
olean normalized, |
775 GC3Dsizei stride, GC3Dintptr offset); | 776 GC3Dsizei stride, GC3Dintptr offset); |
776 | 777 |
777 void viewport(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height); | 778 void viewport(GC3Dint x, GC3Dint y, GC3Dsizei width, GC3Dsizei height); |
778 | 779 |
779 void reshape(int width, int height); | 780 void reshape(int width, int height); |
780 | 781 |
781 #if USE(CG) | 782 #if USE(CG) |
782 void paintToCanvas(const unsigned char* imagePixels, int imageWidth, int ima
geHeight, | 783 static void paintToCanvas(const unsigned char* imagePixels, int imageWidth,
int imageHeight, |
783 int canvasWidth, int canvasHeight, CGContextRef context); | 784 int canvasWidth, int canvasHeight, CGContextRef); |
784 #elif PLATFORM(GTK) | 785 #elif PLATFORM(GTK) |
785 void paintToCanvas(const unsigned char* imagePixels, int imageWidth, int ima
geHeight, | 786 void paintToCanvas(const unsigned char* imagePixels, int imageWidth, int ima
geHeight, |
786 int canvasWidth, int canvasHeight, PlatformContextCairo*
context); | 787 int canvasWidth, int canvasHeight, PlatformContextCairo*
context); |
787 #endif | 788 #endif |
788 | 789 |
789 void markContextChanged(); | 790 void markContextChanged(); |
790 void markLayerComposited(); | 791 void markLayerComposited(); |
791 bool layerComposited() const; | 792 bool layerComposited() const; |
792 | 793 |
793 void paintRenderingResultsToCanvas(CanvasRenderingContext* context); | 794 void paintRenderingResultsToCanvas(CanvasRenderingContext*); |
794 PassRefPtr<ImageData> paintRenderingResultsToImageData(); | 795 PassRefPtr<ImageData> paintRenderingResultsToImageData(); |
| 796 bool paintCompositedResultsToCanvas(CanvasRenderingContext*); |
795 | 797 |
796 #if PLATFORM(QT) | 798 #if PLATFORM(QT) |
797 bool paintsIntoCanvasBuffer() const { return true; } | 799 bool paintsIntoCanvasBuffer() const { return true; } |
798 #elif PLATFORM(CHROMIUM) | 800 #elif PLATFORM(CHROMIUM) |
799 bool paintsIntoCanvasBuffer() const; | 801 bool paintsIntoCanvasBuffer() const; |
800 #elif PLATFORM(GTK) | 802 #elif PLATFORM(GTK) |
801 bool paintsIntoCanvasBuffer() const { return true; } | 803 bool paintsIntoCanvasBuffer() const { return true; } |
802 #else | 804 #else |
803 bool paintsIntoCanvasBuffer() const { return false; } | 805 bool paintsIntoCanvasBuffer() const { return false; } |
804 #endif | 806 #endif |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 // FIXME: ideally this would be used on all platforms. | 954 // FIXME: ideally this would be used on all platforms. |
953 #if PLATFORM(CHROMIUM) || PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(EFL) | 955 #if PLATFORM(CHROMIUM) || PLATFORM(QT) || PLATFORM(GTK) || PLATFORM(EFL) |
954 friend class GraphicsContext3DInternal; | 956 friend class GraphicsContext3DInternal; |
955 OwnPtr<GraphicsContext3DInternal> m_internal; | 957 OwnPtr<GraphicsContext3DInternal> m_internal; |
956 #endif | 958 #endif |
957 }; | 959 }; |
958 | 960 |
959 } // namespace WebCore | 961 } // namespace WebCore |
960 | 962 |
961 #endif // GraphicsContext3D_h | 963 #endif // GraphicsContext3D_h |
OLD | NEW |