1feceb3b97
This just does the boring work, keeping the old type as an empty, now public, base type, with all the existing methods on _Base. Bug: skia:9796 Change-Id: I96d93d25955430c0586deca4bb562913d1d7815a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/265447 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com> Auto-Submit: Mike Klein <mtklein@google.com>
37 lines
764 B
C++
37 lines
764 B
C++
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkBBHFactory_DEFINED
|
|
#define SkBBHFactory_DEFINED
|
|
|
|
#include "include/core/SkRefCnt.h"
|
|
#include "include/core/SkTypes.h"
|
|
|
|
class SkBBoxHierarchy : public SkRefCnt {
|
|
public:
|
|
SkBBoxHierarchy() {}
|
|
virtual ~SkBBoxHierarchy() {}
|
|
|
|
// Future public APIs may go here.
|
|
};
|
|
|
|
class SK_API SkBBHFactory {
|
|
public:
|
|
/**
|
|
* Allocate a new SkBBoxHierarchy. Return NULL on failure.
|
|
*/
|
|
virtual sk_sp<SkBBoxHierarchy> operator()() const = 0;
|
|
virtual ~SkBBHFactory() {}
|
|
};
|
|
|
|
class SK_API SkRTreeFactory : public SkBBHFactory {
|
|
public:
|
|
sk_sp<SkBBoxHierarchy> operator()() const override;
|
|
};
|
|
|
|
#endif
|