blob: 66b78a6635bcde8753a8ecc8e2d4034c8e7d6725 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrContext.h"
#include "GrCustomStage.h"
SK_DEFINE_INST_COUNT(GrCustomStage)
int32_t GrProgramStageFactory::fCurrStageClassID =
GrProgramStageFactory::kIllegalStageClassID;
GrCustomStage::GrCustomStage() {
}
GrCustomStage::~GrCustomStage() {
}
bool GrCustomStage::isOpaque(bool inputTextureIsOpaque) const {
return false;
}
bool GrCustomStage::isEqual(const GrCustomStage& s) const {
if (this->numTextures() != s.numTextures()) {
return false;
}
for (unsigned int i = 0; i < this->numTextures(); ++i) {
if (this->texture(i) != s.texture(i)) {
return false;
}
}
return true;
}
unsigned int GrCustomStage::numTextures() const {
return 0;
}
GrTexture* GrCustomStage::texture(unsigned int index) const {
return NULL;
}
|