diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-14 18:50:07 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-14 18:50:07 +0000 |
commit | 5ed01d1f8fa3fa38105c252929f02dd7603271e3 (patch) | |
tree | 0bf0a87ec36544ba76ca5099f07f078085dab2f2 /src/gpu | |
parent | 1ab85c8719ef46a8f2de9912b3f84f387bddf0d1 (diff) |
Revert r13810 (Proposed SkCanvas API for preLoading textures to VRAM v2.0)
git-svn-id: http://skia.googlecode.com/svn/trunk@13811 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index a86170b75e..e872f1ac97 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -25,7 +25,6 @@ #include "SkImageFilter.h" #include "SkMaskFilter.h" #include "SkPathEffect.h" -#include "SkPicture.h" #include "SkRRect.h" #include "SkStroke.h" #include "SkSurface.h" @@ -2004,44 +2003,3 @@ SkGpuDevice::SkGpuDevice(GrContext* context, this->initFromRenderTarget(context, texture->asRenderTarget(), true); fNeedClear = needClear; } - -class GPUAccelData : public SkPicture::AccelData { -public: - GPUAccelData(Key key) : INHERITED(key) { } - -protected: - -private: - typedef SkPicture::AccelData INHERITED; -}; - -// In the future this may not be a static method if we need to incorporate the -// clip and matrix state into the key -SkPicture::AccelData::Key SkGpuDevice::ComputeAccelDataKey() { - static const SkPicture::AccelData::Key gGPUID = SkPicture::AccelData::GenerateDomain(); - - return gGPUID; -} - -void SkGpuDevice::EXPERIMENTAL_optimize(SkPicture* picture) { - SkPicture::AccelData::Key key = ComputeAccelDataKey(); - - GPUAccelData* data = SkNEW_ARGS(GPUAccelData, (key)); - - picture->EXPERIMENTAL_addAccelData(data); -} - -bool SkGpuDevice::EXPERIMENTAL_drawPicture(const SkPicture& picture) { - SkPicture::AccelData::Key key = ComputeAccelDataKey(); - - const SkPicture::AccelData* data = picture.EXPERIMENTAL_getAccelData(key); - if (NULL == data) { - return false; - } - -#if 0 - const GPUAccelData *gpuData = static_cast<const GPUAccelData*>(data); -#endif - - return false; -} |