michael@0: /* michael@0: * Copyright 2012 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #ifndef SkRunnable_DEFINED michael@0: #define SkRunnable_DEFINED michael@0: michael@0: template michael@0: struct SkTRunnable { michael@0: virtual ~SkTRunnable() {}; michael@0: virtual void run(T&) = 0; michael@0: }; michael@0: michael@0: template <> michael@0: struct SkTRunnable { michael@0: virtual ~SkTRunnable() {}; michael@0: virtual void run() = 0; michael@0: }; michael@0: michael@0: typedef SkTRunnable SkRunnable; michael@0: michael@0: #endif