2011-07-28 14:26:00 +00:00
|
|
|
|
2010-11-11 00:49:41 +00:00
|
|
|
/*
|
2011-07-28 14:26:00 +00:00
|
|
|
* Copyright 2010 The Android Open Source Project
|
2010-11-11 00:49:41 +00:00
|
|
|
*
|
2011-07-28 14:26:00 +00:00
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
2010-11-11 00:49:41 +00:00
|
|
|
*/
|
|
|
|
|
2011-07-28 14:26:00 +00:00
|
|
|
|
2010-11-11 00:49:41 +00:00
|
|
|
#include "SkGLCanvas.h"
|
|
|
|
#include "SkGLDevice.h"
|
|
|
|
|
|
|
|
SkGLCanvas::SkGLCanvas() : SkCanvas(SkNEW(SkGLDeviceFactory)) {}
|
|
|
|
|
|
|
|
// static
|
|
|
|
size_t SkGLCanvas::GetTextureCacheMaxCount() {
|
|
|
|
return SkGLDevice::GetTextureCacheMaxCount();
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
|
|
|
void SkGLCanvas::SetTextureCacheMaxCount(size_t count) {
|
|
|
|
SkGLDevice::SetTextureCacheMaxCount(count);
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
|
|
|
size_t SkGLCanvas::GetTextureCacheMaxSize() {
|
|
|
|
return SkGLDevice::GetTextureCacheMaxSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
|
|
|
void SkGLCanvas::SetTextureCacheMaxSize(size_t size) {
|
|
|
|
SkGLDevice::SetTextureCacheMaxSize(size);
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
|
|
|
void SkGLCanvas::DeleteAllTextures() {
|
|
|
|
SkGLDevice::DeleteAllTextures();
|
|
|
|
}
|
|
|
|
|
|
|
|
// static
|
|
|
|
void SkGLCanvas::AbandonAllTextures() {
|
|
|
|
SkGLDevice::AbandonAllTextures();
|
|
|
|
}
|