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

Unified Diff: Source/core/platform/graphics/win/TransparencyWin.cpp

Issue 104023007: Refactoring ImageBuffer to decouple it from Canvas2DLayerBridge (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: mac+win build fix Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/graphics/win/TransparencyWin.cpp
diff --git a/Source/core/platform/graphics/win/TransparencyWin.cpp b/Source/core/platform/graphics/win/TransparencyWin.cpp
index 88ff45506fb6a7b021910a01582c0c5b05e583b4..0ae27276313bef1abb7ffec6df60009418d1ea62 100644
--- a/Source/core/platform/graphics/win/TransparencyWin.cpp
+++ b/Source/core/platform/graphics/win/TransparencyWin.cpp
@@ -101,7 +101,7 @@ class TransparencyWin::OwnedBuffers {
public:
OwnedBuffers(const IntSize& size, bool needReferenceBuffer)
{
- m_destBitmap = ImageBuffer::create(size, 1);
+ m_destBitmap = ImageBuffer::create(size);
if (needReferenceBuffer) {
m_referenceBitmap.setConfig(SkBitmap::kARGB_8888_Config, size.width(), size.height());
@@ -119,7 +119,7 @@ public:
// Returns whether the current layer will fix a buffer of the given size.
bool canHandleSize(const IntSize& size) const
{
- return m_destBitmap->internalSize().width() >= size.width() && m_destBitmap->internalSize().height() >= size.height();
+ return m_destBitmap->size().width() >= size.width() && m_destBitmap->size().height() >= size.height();
}
private:

Powered by Google App Engine
This is Rietveld 408576698