aboutsummaryrefslogtreecommitdiffhomepage
path: root/obsolete/SkGLCanvas.cpp
blob: 2a76e75a7bbf2295774054c05673daa6bad89fb5 (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

/*
 * Copyright 2010 The Android Open Source Project
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#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();
}