blob: 2a76e75a7bbf2295774054c05673daa6bad89fb5 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
vandebo@chromium.org8c1d88d2010-11-11 00:49:41 +00002/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00003 * Copyright 2010 The Android Open Source Project
vandebo@chromium.org8c1d88d2010-11-11 00:49:41 +00004 *
epoger@google.comec3ed6a2011-07-28 14:26:00 +00005 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
vandebo@chromium.org8c1d88d2010-11-11 00:49:41 +00007 */
8
epoger@google.comec3ed6a2011-07-28 14:26:00 +00009
vandebo@chromium.org8c1d88d2010-11-11 00:49:41 +000010#include "SkGLCanvas.h"
11#include "SkGLDevice.h"
12
13SkGLCanvas::SkGLCanvas() : SkCanvas(SkNEW(SkGLDeviceFactory)) {}
14
15// static
16size_t SkGLCanvas::GetTextureCacheMaxCount() {
17 return SkGLDevice::GetTextureCacheMaxCount();
18}
19
20// static
21void SkGLCanvas::SetTextureCacheMaxCount(size_t count) {
22 SkGLDevice::SetTextureCacheMaxCount(count);
23}
24
25// static
26size_t SkGLCanvas::GetTextureCacheMaxSize() {
27 return SkGLDevice::GetTextureCacheMaxSize();
28}
29
30// static
31void SkGLCanvas::SetTextureCacheMaxSize(size_t size) {
32 SkGLDevice::SetTextureCacheMaxSize(size);
33}
34
35// static
36void SkGLCanvas::DeleteAllTextures() {
37 SkGLDevice::DeleteAllTextures();
38}
39
40// static
41void SkGLCanvas::AbandonAllTextures() {
42 SkGLDevice::AbandonAllTextures();
43}