GrMockTypes.cpp 464 B

123456789101112131415161718
  1. /*
  2. * Copyright 2019 Google LLC
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #include "include/gpu/mock/GrMockTypes.h"
  8. #include "include/gpu/GrBackendSurface.h"
  9. GrBackendFormat GrMockRenderTargetInfo::getBackendFormat() const {
  10. return GrBackendFormat::MakeMock(fColorType);
  11. }
  12. GrBackendFormat GrMockTextureInfo::getBackendFormat() const {
  13. return GrBackendFormat::MakeMock(fColorType);
  14. }