Changeset 95156 in webkit
- Timestamp:
- Sep 14, 2011 8:04:37 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r95152 r95156 1 2011-09-14 John Bauman <jbauman@chromium.org> 2 3 [chromium] Return correct value for getContextAttributes().preserveDrawingBuffer 4 https://bugs.webkit.org/show_bug.cgi?id=68082 5 6 Reviewed by Kenneth Russell. 7 8 WebKit::WebGraphicsContext3D::Attributes doesn't save 9 preserveDrawingBuffer, so that has to be saving in 10 GraphicsContext3DPrivate. 11 12 * src/GraphicsContext3DChromium.cpp: 13 (WebCore::GraphicsContext3DPrivate::GraphicsContext3DPrivate): 14 (WebCore::GraphicsContext3DPrivate::create): 15 (WebCore::GraphicsContext3DPrivate::createGraphicsContextFromWebContext): 16 (WebCore::GraphicsContext3DPrivate::getContextAttributes): 17 * src/GraphicsContext3DPrivate.h: 18 1 19 2011-09-14 Antoine Labour <piman@chromium.org> 2 20 -
trunk/Source/WebKit/chromium/src/GraphicsContext3DChromium.cpp
r94971 r95156 85 85 // GraphicsContext3DPrivate 86 86 87 GraphicsContext3DPrivate::GraphicsContext3DPrivate(WebKit::WebViewImpl* webViewImpl, PassOwnPtr<WebKit::WebGraphicsContext3D> webContext )87 GraphicsContext3DPrivate::GraphicsContext3DPrivate(WebKit::WebViewImpl* webViewImpl, PassOwnPtr<WebKit::WebGraphicsContext3D> webContext, GraphicsContext3D::Attributes attrs) 88 88 : m_impl(webContext) 89 89 , m_webViewImpl(webViewImpl) 90 90 , m_initializedAvailableExtensions(false) 91 91 , m_layerComposited(false) 92 , m_preserveDrawingBuffer(attrs.preserveDrawingBuffer) 92 93 , m_resourceSafety(ResourceSafetyUnknown) 93 94 #if USE(SKIA) … … 115 116 116 117 117 PassOwnPtr<GraphicsContext3DPrivate> GraphicsContext3DPrivate::create(WebKit::WebViewImpl* webViewImpl, PassOwnPtr<WebKit::WebGraphicsContext3D> webContext )118 { 119 return adoptPtr(new GraphicsContext3DPrivate(webViewImpl, webContext ));118 PassOwnPtr<GraphicsContext3DPrivate> GraphicsContext3DPrivate::create(WebKit::WebViewImpl* webViewImpl, PassOwnPtr<WebKit::WebGraphicsContext3D> webContext, GraphicsContext3D::Attributes attrs) 119 { 120 return adoptPtr(new GraphicsContext3DPrivate(webViewImpl, webContext, attrs)); 120 121 } 121 122 … … 128 129 return 0; 129 130 130 OwnPtr<GraphicsContext3DPrivate> priv = GraphicsContext3DPrivate::create(webViewImpl, webContext );131 OwnPtr<GraphicsContext3DPrivate> priv = GraphicsContext3DPrivate::create(webViewImpl, webContext, attrs); 131 132 if (!priv) 132 133 return 0; … … 601 602 attributes.antialias = webAttributes.antialias; 602 603 attributes.premultipliedAlpha = webAttributes.premultipliedAlpha; 604 attributes.preserveDrawingBuffer = m_preserveDrawingBuffer; 603 605 return attributes; 604 606 } -
trunk/Source/WebKit/chromium/src/GraphicsContext3DPrivate.h
r94971 r95156 56 56 class GraphicsContext3DPrivate { 57 57 public: 58 static PassOwnPtr<GraphicsContext3DPrivate> create(WebKit::WebViewImpl*, PassOwnPtr<WebKit::WebGraphicsContext3D> );58 static PassOwnPtr<GraphicsContext3DPrivate> create(WebKit::WebViewImpl*, PassOwnPtr<WebKit::WebGraphicsContext3D>, GraphicsContext3D::Attributes); 59 59 60 60 enum ThreadUsage { … … 74 74 75 75 ~GraphicsContext3DPrivate(); 76 77 bool initialize(GraphicsContext3D::Attributes, HostWindow*, bool renderDirectlyToHostWindow);78 76 79 77 // Helper function to provide access to the lower-level WebGraphicsContext3D, … … 307 305 308 306 private: 309 GraphicsContext3DPrivate(WebKit::WebViewImpl*, PassOwnPtr<WebKit::WebGraphicsContext3D> );307 GraphicsContext3DPrivate(WebKit::WebViewImpl*, PassOwnPtr<WebKit::WebGraphicsContext3D>, GraphicsContext3D::Attributes); 310 308 311 309 OwnPtr<WebKit::WebGraphicsContext3D> m_impl; … … 318 316 HashSet<String> m_requestableExtensions; 319 317 bool m_layerComposited; 318 bool m_preserveDrawingBuffer; 320 319 321 320 enum ResourceSafety {
Note: See TracChangeset
for help on using the changeset viewer.