aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/mock/GrMockCaps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/mock/GrMockCaps.h')
-rw-r--r--src/gpu/mock/GrMockCaps.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/mock/GrMockCaps.h b/src/gpu/mock/GrMockCaps.h
index edec5563c4..399517b0f5 100644
--- a/src/gpu/mock/GrMockCaps.h
+++ b/src/gpu/mock/GrMockCaps.h
@@ -33,8 +33,8 @@ public:
this->applyOptionsOverrides(contextOptions);
}
- int getSampleCount(int /*requestCount*/, GrPixelConfig /*config*/) const override {
- return 0;
+ int getSampleCount(int requestCount, GrPixelConfig /*config*/) const override {
+ return (requestCount > 0 && requestCount <= 16) ? GrNextPow2(requestCount) : 0;
}
bool isConfigTexturable(GrPixelConfig config) const override {
return fOptions.fConfigOptions[config].fTexturable;