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

Unified Diff: src/utils/SkTextureCompressor.cpp

Issue 446103002: Pass compressed blitters to our mask drawing algorithm (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix compiler error Created 6 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 | « src/utils/SkTextureCompressor.h ('k') | src/utils/SkTextureCompressor_ASTC.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkTextureCompressor.cpp
diff --git a/src/utils/SkTextureCompressor.cpp b/src/utils/SkTextureCompressor.cpp
index 4034615b37f389a024547be0116574eb3e580f7a..4ced9a0b57eac61b96228716788fafe86d48de27 100644
--- a/src/utils/SkTextureCompressor.cpp
+++ b/src/utils/SkTextureCompressor.cpp
@@ -11,6 +11,7 @@
#include "SkTextureCompressor_R11EAC.h"
#include "SkBitmap.h"
+#include "SkBitmapProcShader.h"
#include "SkData.h"
#include "SkEndian.h"
@@ -172,16 +173,17 @@ SkData *CompressBitmapToFormat(const SkBitmap &bitmap, Format format) {
return NULL;
}
-SkBlitter* CreateBlitterForFormat(int width, int height, void* compressedBuffer, Format format) {
+SkBlitter* CreateBlitterForFormat(int width, int height, void* compressedBuffer,
+ SkTBlitterAllocator *allocator, Format format) {
switch(format) {
case kLATC_Format:
- return CreateLATCBlitter(width, height, compressedBuffer);
+ return CreateLATCBlitter(width, height, compressedBuffer, allocator);
case kR11_EAC_Format:
- return CreateR11EACBlitter(width, height, compressedBuffer);
+ return CreateR11EACBlitter(width, height, compressedBuffer, allocator);
case kASTC_12x12_Format:
- return CreateASTCBlitter(width, height, compressedBuffer);
+ return CreateASTCBlitter(width, height, compressedBuffer, allocator);
default:
return NULL;
« no previous file with comments | « src/utils/SkTextureCompressor.h ('k') | src/utils/SkTextureCompressor_ASTC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698