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

Unified Diff: src/utils/SkTextureCompressor.h

Issue 422023006: Add query for block dimensions of a given format (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Turn off compression Created 6 years, 5 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
Index: src/utils/SkTextureCompressor.h
diff --git a/src/utils/SkTextureCompressor.h b/src/utils/SkTextureCompressor.h
index 5238ba221be035c78d118b78346dee5fc788f0d6..81aa6e29948afc418c6053abeb01352597dab8cb 100644
--- a/src/utils/SkTextureCompressor.h
+++ b/src/utils/SkTextureCompressor.h
@@ -55,6 +55,12 @@ namespace SkTextureCompressor {
// RGB source data into an R11 EAC texture, you're gonna have a bad time.
SkBlitter* CreateBlitterForFormat(int width, int height, void* compressedBuffer,
Format format);
+
+ // Returns the desired dimensions of the block size for the given format. These dimensions
+ // don't necessarily correspond to the hardware-specified dimensions, since there may
+ // be specialized algorithms that operate on multiple blocks at once. These dimensions
robertphillips 2014/07/29 16:16:04 operable ?
krajcevski 2014/07/29 17:49:51 Done.
+ // reflect that optimization and return the appropriate operatable dimensions.
+ void GetBlockDimensions(Format format, int* dimX, int* dimY);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698