blob: 17e60165a94e51e73ca82289acf6f4f6c1811b8b [file] [log] [blame]
vandebo@chromium.org8c1d88d2010-11-11 00:49:41 +00001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "SkGLCanvas.h"
18#include "SkGLDevice.h"
19
20SkGLCanvas::SkGLCanvas() : SkCanvas(SkNEW(SkGLDeviceFactory)) {}
21
22// static
23size_t SkGLCanvas::GetTextureCacheMaxCount() {
24 return SkGLDevice::GetTextureCacheMaxCount();
25}
26
27// static
28void SkGLCanvas::SetTextureCacheMaxCount(size_t count) {
29 SkGLDevice::SetTextureCacheMaxCount(count);
30}
31
32// static
33size_t SkGLCanvas::GetTextureCacheMaxSize() {
34 return SkGLDevice::GetTextureCacheMaxSize();
35}
36
37// static
38void SkGLCanvas::SetTextureCacheMaxSize(size_t size) {
39 SkGLDevice::SetTextureCacheMaxSize(size);
40}
41
42// static
43void SkGLCanvas::DeleteAllTextures() {
44 SkGLDevice::DeleteAllTextures();
45}
46
47// static
48void SkGLCanvas::AbandonAllTextures() {
49 SkGLDevice::AbandonAllTextures();
50}