Changeset 76077 in webkit
- Timestamp:
- Jan 18, 2011 3:40:46 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r76072 r76077 1 2011-01-18 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Dan Bernstein. 4 5 Pass the web page proxy to BackingStore::create 6 https://bugs.webkit.org/show_bug.cgi?id=52673 7 8 * UIProcess/BackingStore.cpp: 9 (WebKit::BackingStore::create): 10 Add WebPageProxy parameter. 11 12 (WebKit::BackingStore::BackingStore): 13 Add WebPageProxy parameter. 14 15 * UIProcess/BackingStore.h: 16 Add WebPageProxy member variable. 17 18 * UIProcess/DrawingAreaProxyImpl.cpp: 19 (WebKit::DrawingAreaProxyImpl::incorporateUpdate): 20 Pass the web page proxy when creating the backing store. 21 22 * UIProcess/mac/BackingStoreMac.mm: 23 (WebKit::BackingStore::backingStoreContext): 24 Set the default blend mode. 25 1 26 2011-01-18 Anders Carlsson <andersca@apple.com> 2 27 -
trunk/Source/WebKit2/UIProcess/BackingStore.cpp
r75647 r76077 34 34 namespace WebKit { 35 35 36 PassOwnPtr<BackingStore> BackingStore::create(const IntSize& size )36 PassOwnPtr<BackingStore> BackingStore::create(const IntSize& size, WebPageProxy* webPageProxy) 37 37 { 38 return adoptPtr(new BackingStore(size ));38 return adoptPtr(new BackingStore(size, webPageProxy)); 39 39 } 40 40 41 BackingStore::BackingStore(const IntSize& size )41 BackingStore::BackingStore(const IntSize& size, WebPageProxy* webPageProxy) 42 42 : m_size(size) 43 , m_webPageProxy(webPageProxy) 43 44 { 44 45 ASSERT(!m_size.isEmpty()); -
trunk/Source/WebKit2/UIProcess/BackingStore.h
r76072 r76077 48 48 49 49 public: 50 static PassOwnPtr<BackingStore> create(const WebCore::IntSize& );50 static PassOwnPtr<BackingStore> create(const WebCore::IntSize&, WebPageProxy*); 51 51 ~BackingStore(); 52 52 … … 59 59 60 60 private: 61 explicit BackingStore(const WebCore::IntSize&);61 BackingStore(const WebCore::IntSize&, WebPageProxy*); 62 62 63 63 void scroll(const WebCore::IntRect& scrollRect, const WebCore::IntSize& scrollOffset); 64 64 65 65 WebCore::IntSize m_size; 66 WebPageProxy* m_webPageProxy; 66 67 67 68 #if PLATFORM(MAC) 68 69 CGContextRef backingStoreContext(); 69 70 71 RetainPtr<CGLayerRef> m_cgLayer; 70 72 RetainPtr<CGContextRef> m_bitmapContext; 71 73 #endif -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp
r76065 r76077 114 114 115 115 if (!m_backingStore) 116 m_backingStore = BackingStore::create(updateInfo.viewSize );116 m_backingStore = BackingStore::create(updateInfo.viewSize, m_webPageProxy); 117 117 118 118 m_backingStore->incorporateUpdate(updateInfo); -
trunk/Source/WebKit2/UIProcess/mac/BackingStoreMac.mm
r76072 r76077 48 48 49 49 m_bitmapContext.adoptCF(CGBitmapContextCreate(0, m_size.width(), m_size.height(), 8, m_size.width() * 4, colorSpace.get(), kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host)); 50 50 51 CGContextSetBlendMode(m_bitmapContext.get(), kCGBlendModeCopy); 52 51 53 // We want the origin to be in the top left corner so flip the backing store context. 52 54 CGContextTranslateCTM(m_bitmapContext.get(), 0, m_size.height());
Note: See TracChangeset
for help on using the changeset viewer.