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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/Extensions3DChromium.h

Issue 7631029: Merge 91736 - Source/WebCore: Removed support for the GL_latch_CHROMIUM extension which Chromium ... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 24 matching lines...) Expand all
35 35
36 class Extensions3DChromium : public Extensions3D { 36 class Extensions3DChromium : public Extensions3D {
37 public: 37 public:
38 virtual ~Extensions3DChromium(); 38 virtual ~Extensions3DChromium();
39 39
40 // Supported extensions: 40 // Supported extensions:
41 // GL_CHROMIUM_resource_safe : indicating that textures/renderbuffers are always initialized before read/write. 41 // GL_CHROMIUM_resource_safe : indicating that textures/renderbuffers are always initialized before read/write.
42 // GL_CHROMIUM_strict_attribs : indicating a GL error is generated for out -of-bounds buffer accesses. 42 // GL_CHROMIUM_strict_attribs : indicating a GL error is generated for out -of-bounds buffer accesses.
43 // GL_CHROMIUM_map_sub 43 // GL_CHROMIUM_map_sub
44 // GL_CHROMIUM_copy_texture_to_parent_texture 44 // GL_CHROMIUM_copy_texture_to_parent_texture
45 // GL_CHROMIUM_latch
46 // GL_CHROMIUM_swapbuffers_complete_callback 45 // GL_CHROMIUM_swapbuffers_complete_callback
47 // GL_CHROMIUM_rate_limit_offscreen_context 46 // GL_CHROMIUM_rate_limit_offscreen_context
48 // GL_CHROMIUM_paint_framebuffer_canvas 47 // GL_CHROMIUM_paint_framebuffer_canvas
49 48
50 // Extensions3D methods. 49 // Extensions3D methods.
51 virtual bool supports(const String&); 50 virtual bool supports(const String&);
52 virtual void ensureEnabled(const String&); 51 virtual void ensureEnabled(const String&);
53 virtual bool isEnabled(const String&); 52 virtual bool isEnabled(const String&);
54 virtual int getGraphicsResetStatusARB(); 53 virtual int getGraphicsResetStatusARB();
55 virtual void blitFramebuffer(long srcX0, long srcY0, long srcX1, long srcY1, long dstX0, long dstY0, long dstX1, long dstY1, unsigned long mask, unsigned lo ng filter); 54 virtual void blitFramebuffer(long srcX0, long srcY0, long srcX1, long srcY1, long dstX0, long dstY0, long dstX1, long dstY1, unsigned long mask, unsigned lo ng filter);
(...skipping 11 matching lines...) Expand all
67 66
68 // GL_CHROMIUM_map_sub 67 // GL_CHROMIUM_map_sub
69 void* mapBufferSubDataCHROMIUM(unsigned target, int offset, int size, unsign ed access); 68 void* mapBufferSubDataCHROMIUM(unsigned target, int offset, int size, unsign ed access);
70 void unmapBufferSubDataCHROMIUM(const void*); 69 void unmapBufferSubDataCHROMIUM(const void*);
71 void* mapTexSubImage2DCHROMIUM(unsigned target, int level, int xoffset, int yoffset, int width, int height, unsigned format, unsigned type, unsigned access) ; 70 void* mapTexSubImage2DCHROMIUM(unsigned target, int level, int xoffset, int yoffset, int width, int height, unsigned format, unsigned type, unsigned access) ;
72 void unmapTexSubImage2DCHROMIUM(const void*); 71 void unmapTexSubImage2DCHROMIUM(const void*);
73 72
74 // GL_CHROMIUM_copy_texture_to_parent_texture 73 // GL_CHROMIUM_copy_texture_to_parent_texture
75 void copyTextureToParentTextureCHROMIUM(unsigned texture, unsigned parentTex ture); 74 void copyTextureToParentTextureCHROMIUM(unsigned texture, unsigned parentTex ture);
76 75
77 // GL_CHROMIUM_latch
78 void getParentToChildLatchCHROMIUM(GC3Duint* latchId);
79 void getChildToParentLatchCHROMIUM(GC3Duint* latchId);
80 void waitLatchCHROMIUM(GC3Duint latchId);
81 void setLatchCHROMIUM(GC3Duint latchId);
82
83 // GL_CHROMIUM_swapbuffers_complete_callback 76 // GL_CHROMIUM_swapbuffers_complete_callback
84 class SwapBuffersCompleteCallbackCHROMIUM { 77 class SwapBuffersCompleteCallbackCHROMIUM {
85 public: 78 public:
86 virtual void onSwapBuffersComplete() = 0; 79 virtual void onSwapBuffersComplete() = 0;
87 virtual ~SwapBuffersCompleteCallbackCHROMIUM() { } 80 virtual ~SwapBuffersCompleteCallbackCHROMIUM() { }
88 }; 81 };
89 void setSwapBuffersCompleteCallbackCHROMIUM(PassOwnPtr<SwapBuffersCompleteCa llbackCHROMIUM>); 82 void setSwapBuffersCompleteCallbackCHROMIUM(PassOwnPtr<SwapBuffersCompleteCa llbackCHROMIUM>);
90 83
91 // GL_CHROMIUM_rate_limit_offscreen_context 84 // GL_CHROMIUM_rate_limit_offscreen_context
92 void rateLimitOffscreenContextCHROMIUM(); 85 void rateLimitOffscreenContextCHROMIUM();
93 86
94 // GL_CHROMIUM_paint_framebuffer_canvas 87 // GL_CHROMIUM_paint_framebuffer_canvas
95 void paintFramebufferToCanvas(int framebuffer, int width, int height, bool p remultiplyAlpha, ImageBuffer*); 88 void paintFramebufferToCanvas(int framebuffer, int width, int height, bool p remultiplyAlpha, ImageBuffer*);
96 89
97 private: 90 private:
98 // Instances of this class are strictly owned by the GraphicsContext3D imple mentation and do not 91 // Instances of this class are strictly owned by the GraphicsContext3D imple mentation and do not
99 // need to be instantiated by any other code. 92 // need to be instantiated by any other code.
100 friend class GraphicsContext3DInternal; 93 friend class GraphicsContext3DInternal;
101 explicit Extensions3DChromium(GraphicsContext3DInternal*); 94 explicit Extensions3DChromium(GraphicsContext3DInternal*);
102 95
103 // Weak pointer back to GraphicsContext3DInternal 96 // Weak pointer back to GraphicsContext3DInternal
104 GraphicsContext3DInternal* m_internal; 97 GraphicsContext3DInternal* m_internal;
105 }; 98 };
106 99
107 } // namespace WebCore 100 } // namespace WebCore
108 101
109 #endif // Extensions3DChromium_h 102 #endif // Extensions3DChromium_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698