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

Unified Diff: cc/CCRenderSurfaceFilters.cpp

Issue 10879109: Update libcc / bindings snapshot to WebKit r126830 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months 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
« no previous file with comments | « cc/CCRenderSurface.cpp ('k') | cc/CCRenderSurfaceTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCRenderSurfaceFilters.cpp
diff --git a/cc/CCRenderSurfaceFilters.cpp b/cc/CCRenderSurfaceFilters.cpp
index 3ea246e129bbc9c34757ea406c4d14374f4bd81e..8222ad246be313c0b3d93b50e14ab01a6e9661ca 100644
--- a/cc/CCRenderSurfaceFilters.cpp
+++ b/cc/CCRenderSurfaceFilters.cpp
@@ -13,7 +13,7 @@
#include "SkCanvas.h"
#include "SkColorMatrixFilter.h"
#include "SkGpuDevice.h"
-#include "SkGrTexturePixelRef.h"
+#include "SkGrPixelRef.h"
#include "SkMagnifierImageFilter.h"
#include <public/WebFilterOperation.h>
#include <public/WebFilterOperations.h>
@@ -244,12 +244,12 @@ public:
GrPlatformTextureDesc platformTextureDescription;
platformTextureDescription.fWidth = size.width();
platformTextureDescription.fHeight = size.height();
- platformTextureDescription.fConfig = kSkia8888_PM_GrPixelConfig;
+ platformTextureDescription.fConfig = kSkia8888_GrPixelConfig;
platformTextureDescription.fTextureHandle = textureId;
SkAutoTUnref<GrTexture> texture(grContext->createPlatformTexture(platformTextureDescription));
// Place the platform texture inside an SkBitmap.
m_source.setConfig(SkBitmap::kARGB_8888_Config, size.width(), size.height());
- m_source.setPixelRef(new SkGrTexturePixelRef(texture.get()))->unref();
+ m_source.setPixelRef(new SkGrPixelRef(texture.get()))->unref();
}
~FilterBufferState() { }
@@ -262,7 +262,7 @@ public:
desc.fSampleCnt = 0;
desc.fWidth = m_source.width();
desc.fHeight = m_source.height();
- desc.fConfig = kSkia8888_PM_GrPixelConfig;
+ desc.fConfig = kSkia8888_GrPixelConfig;
for (int i = 0; i < scratchCount; ++i) {
GrAutoScratchTexture scratchTexture(m_grContext, desc, GrContext::kExact_ScratchTexMatch);
m_scratchTextures[i].reset(scratchTexture.detach());
@@ -287,7 +287,7 @@ public:
m_canvas.reset(0);
m_device.reset(0);
- m_source.setPixelRef(new SkGrTexturePixelRef(m_scratchTextures[m_currentTexture].get()))->unref();
+ m_source.setPixelRef(new SkGrPixelRef(m_scratchTextures[m_currentTexture].get()))->unref();
m_currentTexture = 1 - m_currentTexture;
}
« no previous file with comments | « cc/CCRenderSurface.cpp ('k') | cc/CCRenderSurfaceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698