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

Unified Diff: Source/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: rebase mayhem 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/platform/graphics/win/TransparencyWin.cpp
diff --git a/Source/platform/graphics/win/TransparencyWin.cpp b/Source/platform/graphics/win/TransparencyWin.cpp
index 89271e048fc681355b98907bf845be50f1a6330a..5c7b56e2d0705f6229ab06d095b339d07adc9cae 100644
--- a/Source/platform/graphics/win/TransparencyWin.cpp
+++ b/Source/platform/graphics/win/TransparencyWin.cpp
@@ -99,7 +99,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());
@@ -117,7 +117,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:
« no previous file with comments | « Source/platform/graphics/gpu/WebGLImageBufferSurface.cpp ('k') | Source/platform/scroll/ScrollbarThemeMacNonOverlayAPI.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698