diff options
author | 2014-05-30 20:36:21 +0000 | |
---|---|---|
committer | 2014-05-30 20:36:21 +0000 | |
commit | 999cfd1076e23e7348623f7a59cf2905bdc6099d (patch) | |
tree | 46d78014a938d5dd4de18da15f39b4138f795149 /include/gpu/GrTypes.h | |
parent | 910702b564048d77e36a68b0f8dda7cc48a8fcff (diff) |
Revert of Initial work to get ETC1 data up to the GPU (https://codereview.chromium.org/302783002/)
Reason for revert:
ETC1 linking problems with chrome.
Original issue's description:
> Initial work to get ETC1 data up to the GPU
>
> Committed: http://code.google.com/p/skia/source/detail?r=15001
R=bsalomon@google.com, robertphillips@google.com
TBR=bsalomon@google.com, robertphillips@google.com
NOTREECHECKS=true
NOTRY=true
Author: krajcevski@google.com
Review URL: https://codereview.chromium.org/303273008
git-svn-id: http://skia.googlecode.com/svn/trunk@15004 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/GrTypes.h')
-rw-r--r-- | include/gpu/GrTypes.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h index 34f4e2827d..53e633da57 100644 --- a/include/gpu/GrTypes.h +++ b/include/gpu/GrTypes.h @@ -641,26 +641,6 @@ enum GrGLBackendState { }; /** - * Returns the data size for the given compressed pixel config - */ -static inline size_t GrCompressedFormatDataSize(GrPixelConfig config, - int width, int height) { - SkASSERT(GrPixelConfigIsCompressed(config)); - - switch (config) { - case kLATC_GrPixelConfig: - case kETC1_GrPixelConfig: - SkASSERT((width & 3) == 0); - SkASSERT((height & 3) == 0); - return (width >> 2) * (height >> 2) * 8; - - default: - SkFAIL("Unknown compressed pixel config"); - return 4 * width * height; - } -} - -/** * This value translates to reseting all the context state for any backend. */ static const uint32_t kAll_GrBackendState = 0xffffffff; |