Changeset 92206 in webkit
- Timestamp:
- Aug 2, 2011 10:53:44 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r92203 r92206 1 2011-08-02 Nat Duca <nduca@chromium.org> 2 3 [chromium] Remove resizeOnscreenContent from LRC. It can be derived. 4 https://bugs.webkit.org/show_bug.cgi?id=65519 5 6 Reviewed by James Robinson. 7 8 * platform/graphics/chromium/LayerRendererChromium.cpp: 9 (WebCore::LayerRendererChromium::setViewport): 10 * platform/graphics/chromium/LayerRendererChromium.h: 11 1 12 2011-08-02 Nico Weber <thakis@chromium.org> 2 13 -
trunk/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp
r92068 r92206 519 519 520 520 if (visibleRectChanged) { 521 if (m_context) 522 m_context->reshape(std::max(1, visibleRect.width()), std::max(1, visibleRect.height())); 521 523 // Reset the current render surface to force an update of the viewport and 522 524 // projection matrix next time useRenderSurface is called. … … 1124 1126 } 1125 1127 1126 1127 1128 void LayerRendererChromium::resizeOnscreenContent(const IntSize& size)1129 {1130 if (m_context)1131 m_context->reshape(size.width(), size.height());1132 }1133 1128 1134 1129 bool LayerRendererChromium::initializeSharedObjects() -
trunk/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.h
r91736 r92206 139 139 const CCVideoLayerImpl::YUVProgram* videoLayerYUVProgram(); 140 140 141 void resizeOnscreenContent(const IntSize&);142 143 141 void getFramebufferPixels(void *pixels, const IntRect& rect); 144 142 -
trunk/Source/WebKit/chromium/ChangeLog
r92161 r92206 1 2011-08-02 Nat Duca <nduca@chromium.org> 2 3 [chromium] Remove resizeOnscreenContent from LRC. It can be derived. 4 https://bugs.webkit.org/show_bug.cgi?id=65519 5 6 Reviewed by James Robinson. 7 8 * src/WebViewImpl.cpp: 9 (WebKit::WebViewImpl::resize): 10 (WebKit::WebViewImpl::setIsAcceleratedCompositingActive): 11 1 12 2011-08-01 Jean-luc Brouillet <jeanluc@chromium.org> 2 13 -
trunk/Source/WebKit/chromium/src/WebViewImpl.cpp
r92068 r92206 1005 1005 } 1006 1006 } 1007 1008 #if USE(ACCELERATED_COMPOSITING)1009 if (m_layerRenderer && isAcceleratedCompositingActive()) {1010 m_layerRenderer->resizeOnscreenContent(IntSize(max(1, m_size.width),1011 max(1, m_size.height)));1012 }1013 #endif1014 1007 } 1015 1008 … … 2530 2523 } else if (m_layerRenderer) { 2531 2524 m_isAcceleratedCompositingActive = true; 2532 m_layerRenderer->resizeOnscreenContent(WebCore::IntSize(max(1, m_size.width), 2533 max(1, m_size.height))); 2525 updateLayerRendererViewport(); 2534 2526 2535 2527 m_client->didActivateAcceleratedCompositing(true);
Note: See TracChangeset
for help on using the changeset viewer.