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

Unified Diff: src/gpu/GrTexture.cpp

Issue 330763008: Add R11 EAC pixel config (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Finding the size should be easy to do Created 6 years, 6 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/gpu/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTexture.cpp
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp
index 4f95730b1201fdff5e0c2d00a5ef766f5bccbe52..984a9cf77581d38cbb25a5dec97f9cccab0d64b1 100644
--- a/src/gpu/GrTexture.cpp
+++ b/src/gpu/GrTexture.cpp
@@ -71,6 +71,7 @@ size_t GrTexture::gpuMemorySize() const {
switch(fDesc.fConfig) {
case kETC1_GrPixelConfig:
case kLATC_GrPixelConfig:
+ case kR11_EAC_GrPixelConfig:
SkASSERT((fDesc.fWidth & 3) == 0);
SkASSERT((fDesc.fHeight & 3) == 0);
textureSize = (fDesc.fWidth >> 2) * (fDesc.fHeight >> 2) * 8;
« no previous file with comments | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698