• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 The ANGLE Project 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"""ANGLE implementation of //build/skia_gold_common/skia_gold_session_manager.py."""
5
6import os
7import sys
8
9d = os.path.dirname
10THIS_DIR = d(os.path.abspath(__file__))
11ANGLE_SRC_DIR = d(d(d(THIS_DIR)))
12sys.path.insert(0, os.path.join(ANGLE_SRC_DIR, 'build'))
13CHROMIUM_SRC_DIR = d(d(ANGLE_SRC_DIR))
14sys.path.insert(0, os.path.join(CHROMIUM_SRC_DIR, 'build'))
15
16from skia_gold_common import skia_gold_session_manager as sgsm
17from .angle_skia_gold_session import ANGLESkiaGoldSession
18
19
20class ANGLESkiaGoldSessionManager(sgsm.SkiaGoldSessionManager):
21
22    @staticmethod
23    def _GetDefaultInstance():
24        return 'angle'
25
26    @staticmethod
27    def GetSessionClass():
28        return ANGLESkiaGoldSession
29