83e939bcb7
- Added default implementation of onMakeContext to support use in android. Searches for uses: "public SkShader" package:^chromium$ -file:^src/third_party/skia package:^aosp.* "public SkShader" -file:external/skia -file:.*third_party/skia package:^android$ "public SkShader" -file:external/skia -file:.*third_party/skia ... shows that no subclass overrides onCreateContext. TBR=reed@google.com TBR=mtklein@google.com Change-Id: I8bd5f57a79534574e344b165d31dccee41c31767 Reviewed-on: https://skia-review.googlesource.com/8140 Commit-Queue: Herb Derby <herb@google.com> Reviewed-by: Herb Derby <herb@google.com>
27 lines
698 B
C++
27 lines
698 B
C++
/*
|
|
* Copyright 2006 The Android Open Source Project
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#ifndef SkBitmapProcShader_DEFINED
|
|
#define SkBitmapProcShader_DEFINED
|
|
|
|
#include "SkImagePriv.h"
|
|
#include "SkShader.h"
|
|
|
|
class SkBitmapProvider;
|
|
|
|
class SkBitmapProcLegacyShader : public SkShader {
|
|
private:
|
|
friend class SkImageShader;
|
|
|
|
static size_t ContextSize(const ContextRec&, const SkImageInfo& srcInfo);
|
|
static Context* MakeContext(const SkShader&, TileMode tmx, TileMode tmy,
|
|
const SkBitmapProvider&, const ContextRec&, SkArenaAlloc* alloc);
|
|
|
|
typedef SkShader INHERITED;
|
|
};
|
|
|
|
#endif
|