diff options
author | Brian Salomon <bsalomon@google.com> | 2017-07-06 18:21:25 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-06 18:21:37 +0000 |
commit | c867a89b012c07e7e5cb719a31ed90e61f4a4901 (patch) | |
tree | c024d294fbe22508c65c686ad3771691d4ca5e1e /include/gpu/mock | |
parent | 3276f9a4ffc0ea8aa2b6dc222b89ef794678123b (diff) |
Revert "Make mock GrContext unit testable."
This reverts commit 993e7e25217df05d63c3354c817e8bd18ea3738b.
Reason for revert: Seeing if this fixes the NexusPlayer bots
Original change's description:
> Make mock GrContext unit testable.
>
> Bug: skia:
> Change-Id: I959122f1f2c390832ab1033bcdbdd2ca6cfc0419
> Reviewed-on: https://skia-review.googlesource.com/20699
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>
TBR=egdaniel@google.com,bsalomon@google.com
Change-Id: I25ed9329962d930fe38108f779ff7083e0e4847e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/21731
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'include/gpu/mock')
-rw-r--r-- | include/gpu/mock/GrMockOptions.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/include/gpu/mock/GrMockOptions.h b/include/gpu/mock/GrMockOptions.h deleted file mode 100644 index 6d30299cd5..0000000000 --- a/include/gpu/mock/GrMockOptions.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2017 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef GrMockOptions_DEFINED -#define GrMockOptions_DEFINED - -#include "GrTypes.h" - -/** - * A pointer to this type is used as the GrBackendContext when creating a Mock GrContext. It can be - * used to specificy capability options for the mock context. If nullptr is used a default - * constructed GrMockOptions is used. - */ -struct GrMockOptions { - GrMockOptions() { - // By default RGBA_8888 is textureable and renderable and A8 is texturable. - fConfigOptions[kRGBA_8888_GrPixelConfig].fRenderable[0] = true; - fConfigOptions[kRGBA_8888_GrPixelConfig].fTexturable = true; - fConfigOptions[kAlpha_8_GrPixelConfig].fTexturable = true; - } - - struct ConfigOptions { - /** The first value is for non-MSAA rendering, the second for MSAA. */ - bool fRenderable[2] = {false, false}; - bool fTexturable = false; - }; - - int fMaxTextureSize = 16384; - int fMaxRenderTargetSize = 16384; - int fMaxVertexAttributes = 16; - ConfigOptions fConfigOptions[kGrPixelConfigCnt]; -}; - -#endif |