finch_skia_gold_session_manager.py 744 B

12345678910111213141516171819
  1. # Copyright 2022 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. """Finch impl of skia_gold_session_manager.py."""
  5. import os
  6. import sys
  7. THIS_DIR = os.path.abspath(os.path.dirname(__file__))
  8. CHROMIUM_SRC_DIR = os.path.realpath(os.path.join(THIS_DIR, '..', '..', '..'))
  9. sys.path.insert(0, os.path.join(CHROMIUM_SRC_DIR, 'build'))
  10. from skia_gold_common import output_managerless_skia_gold_session
  11. from skia_gold_common import skia_gold_session_manager as sgsm
  12. class FinchSkiaGoldSessionManager(sgsm.SkiaGoldSessionManager):
  13. @staticmethod
  14. def GetSessionClass():
  15. return output_managerless_skia_gold_session.OutputManagerlessSkiaGoldSession