OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkGpuDevice.h" | 8 #include "SkGpuDevice.h" |
9 | 9 |
10 #include "effects/GrBicubicEffect.h" | 10 #include "effects/GrBicubicEffect.h" |
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1981 if (ops.offset(i) > info.fSaveLayerOpID && ops.offset(i) < info.fRes
toreOpID) { | 1981 if (ops.offset(i) > info.fSaveLayerOpID && ops.offset(i) < info.fRes
toreOpID) { |
1982 pullForward[j] = true; | 1982 pullForward[j] = true; |
1983 } | 1983 } |
1984 } | 1984 } |
1985 } | 1985 } |
1986 | 1986 |
1987 #ifdef SK_PRINT_PULL_FORWARD_INFO | 1987 #ifdef SK_PRINT_PULL_FORWARD_INFO |
1988 SkDebugf("Need SaveLayers: "); | 1988 SkDebugf("Need SaveLayers: "); |
1989 for (int i = 0; i < gpuData->numSaveLayers(); ++i) { | 1989 for (int i = 0; i < gpuData->numSaveLayers(); ++i) { |
1990 if (pullForward[i]) { | 1990 if (pullForward[i]) { |
1991 const GrAtlasedLayer* layer = fContext->getLayerCache()->findLayerOr
Create(picture, i); | 1991 const GrCachedLayer* layer = fContext->getLayerCache()->findLayerOrC
reate(picture, i); |
1992 | 1992 |
1993 SkDebugf("%d (%d), ", i, layer->layerID()); | 1993 SkDebugf("%d (%d), ", i, layer->layerID()); |
1994 } | 1994 } |
1995 } | 1995 } |
1996 SkDebugf("\n"); | 1996 SkDebugf("\n"); |
1997 #endif | 1997 #endif |
1998 | 1998 |
1999 return false; | 1999 return false; |
2000 } | 2000 } |
OLD | NEW |