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 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1911 void SkGpuDevice::EXPERIMENTAL_optimize(SkPicture* picture) { | 1911 void SkGpuDevice::EXPERIMENTAL_optimize(SkPicture* picture) { |
1912 SkPicture::AccelData::Key key = ComputeAccelDataKey(); | 1912 SkPicture::AccelData::Key key = ComputeAccelDataKey(); |
1913 | 1913 |
1914 GPUAccelData* data = SkNEW_ARGS(GPUAccelData, (key)); | 1914 GPUAccelData* data = SkNEW_ARGS(GPUAccelData, (key)); |
1915 | 1915 |
1916 picture->EXPERIMENTAL_addAccelData(data); | 1916 picture->EXPERIMENTAL_addAccelData(data); |
1917 | 1917 |
1918 GatherGPUInfo(picture, data); | 1918 GatherGPUInfo(picture, data); |
1919 } | 1919 } |
1920 | 1920 |
1921 bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkPicture* picture) { | 1921 void SkGpuDevice::EXPERIMENTAL_purge(SkPicture* picture) { |
1922 | |
1923 } | |
1924 | |
1925 bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkCanvas* canvas, SkPicture* picture) { | |
1922 | 1926 |
jvanverth1
2014/04/10 20:23:34
It's not clear to me where the SkCanvas* gets used
robertphillips
2014/04/11 11:09:06
This is a small, salvageable chunk of my check-tha
| |
1923 SkPicture::AccelData::Key key = ComputeAccelDataKey(); | 1927 SkPicture::AccelData::Key key = ComputeAccelDataKey(); |
1924 | 1928 |
1925 const SkPicture::AccelData* data = picture->EXPERIMENTAL_getAccelData(key); | 1929 const SkPicture::AccelData* data = picture->EXPERIMENTAL_getAccelData(key); |
1926 if (NULL == data) { | 1930 if (NULL == data) { |
1927 return false; | 1931 return false; |
1928 } | 1932 } |
1929 | 1933 |
1930 const GPUAccelData *gpuData = static_cast<const GPUAccelData*>(data); | 1934 const GPUAccelData *gpuData = static_cast<const GPUAccelData*>(data); |
1931 | 1935 |
1932 //#define SK_PRINT_PULL_FORWARD_INFO 1 | 1936 //#define SK_PRINT_PULL_FORWARD_INFO 1 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1991 const GrAtlasedLayer* layer = fContext->getLayerCache()->findLayerOr Create(picture, i); | 1995 const GrAtlasedLayer* layer = fContext->getLayerCache()->findLayerOr Create(picture, i); |
1992 | 1996 |
1993 SkDebugf("%d (%d), ", i, layer->layerID()); | 1997 SkDebugf("%d (%d), ", i, layer->layerID()); |
1994 } | 1998 } |
1995 } | 1999 } |
1996 SkDebugf("\n"); | 2000 SkDebugf("\n"); |
1997 #endif | 2001 #endif |
1998 | 2002 |
1999 return false; | 2003 return false; |
2000 } | 2004 } |
OLD | NEW |