Changeset 62874 in webkit
- Timestamp:
- Jul 8, 2010 5:41:00 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r62873 r62874 1 2010-07-08 James Robinson <jamesr@google.com> 2 3 Reviewed by Darin Fisher. 4 5 Allow resizing and getting the texture id from an offscreen GLES2Context 6 https://bugs.webkit.org/show_bug.cgi?id=41828 7 8 When using an offscreen GLES2Context the caller needs to be able to resize the backing store 9 managed by the embedder and get access to a texture id to pass to the compositor. WebGL 10 does these actions in an indirect way, it will be refactored to use this path. 11 12 * platform/chromium/GLES2Context.h: 13 1 14 2010-07-02 Ojan Vafai <ojan@chromium.org> 2 15 -
trunk/WebCore/platform/chromium/GLES2Context.h
r62702 r62874 39 39 40 40 class GLES2ContextInternal; 41 class IntSize; 41 42 class Page; 42 43 … … 57 58 bool swapBuffers(); 58 59 60 // Only valid for offscreen contexts. 61 void resizeOffscreenContent(const IntSize&); 62 63 // Returns the ID of the texture used for offscreen rendering in the context of the parent. 64 // This texture is accessible by the GPU page compositor. 65 unsigned getOffscreenContentParentTextureId(); 66 59 67 private: 60 68 friend class GLES2ContextInternal; -
trunk/WebKit/chromium/ChangeLog
r62831 r62874 1 2010-07-08 James Robinson <jamesr@google.com> 2 3 Reviewed by Darin Fisher. 4 5 Allow resizing and getting the texture ID from an offscreen GLES2Context 6 https://bugs.webkit.org/show_bug.cgi?id=41828 7 8 When using an offscreen GLES2Context the caller needs to be able to resize the backing store 9 managed by the embedder and get access to a texture id to pass to the compositor. WebGL 10 does these actions in an indirect way, it will be refactored to use this path. 11 12 * public/WebGLES2Context.h: 13 * src/GLES2Context.cpp: 14 (WebCore::GLES2Context::resizeOffscreenContent): 15 (WebCore::GLES2Context::getOffscreenContentParentTextureId): 16 1 17 2010-07-08 Vitaly Repeshko <vitalyr@chromium.org> 2 18 -
trunk/WebKit/chromium/public/WebGLES2Context.h
r61774 r62874 37 37 namespace WebKit { 38 38 39 class WebSize; 39 40 class WebView; 40 41 … … 50 51 virtual bool destroy() = 0; 51 52 virtual bool swapBuffers() = 0; 53 54 // The follow two functions are for managing a context that renders offscreen. 55 56 // Resizes the backing store used for offscreen rendering. 57 virtual void resizeOffscreenContent(const WebSize&) = 0; 58 59 // Returns the ID of the texture used for offscreen rendering in the context of the parent. 60 virtual unsigned getOffscreenContentParentTextureId() = 0; 52 61 }; 53 62 -
trunk/WebKit/chromium/src/GLES2Context.cpp
r62702 r62874 32 32 33 33 #include "GLES2Context.h" 34 #include "IntSize.h" 34 35 #include "WebGLES2Context.h" 35 36 #include "WebKit.h" … … 142 143 } 143 144 145 void GLES2Context::resizeOffscreenContent(const IntSize& size) 146 { 147 WebGLES2Context* webContext = m_internal->getWebGLES2Context(); 148 ASSERT(webContext); 149 webContext->resizeOffscreenContent(size); 150 } 151 152 unsigned GLES2Context::getOffscreenContentParentTextureId() 153 { 154 WebGLES2Context* webContext = m_internal->getWebGLES2Context(); 155 ASSERT(webContext); 156 return webContext->getOffscreenContentParentTextureId(); 157 } 158 144 159 } // namespace WebCore
Note: See TracChangeset
for help on using the changeset viewer.