epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
vandebo@chromium.org | 8c1d88d | 2010-11-11 00:49:41 +0000 | [diff] [blame] | 2 | /* |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 3 | * Copyright 2010 The Android Open Source Project |
vandebo@chromium.org | 8c1d88d | 2010-11-11 00:49:41 +0000 | [diff] [blame] | 4 | * |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
vandebo@chromium.org | 8c1d88d | 2010-11-11 00:49:41 +0000 | [diff] [blame] | 7 | */ |
| 8 | |
epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 9 | |
vandebo@chromium.org | 8c1d88d | 2010-11-11 00:49:41 +0000 | [diff] [blame] | 10 | #include "SkGLCanvas.h" |
| 11 | #include "SkGLDevice.h" |
| 12 | |
| 13 | SkGLCanvas::SkGLCanvas() : SkCanvas(SkNEW(SkGLDeviceFactory)) {} |
| 14 | |
| 15 | // static |
| 16 | size_t SkGLCanvas::GetTextureCacheMaxCount() { |
| 17 | return SkGLDevice::GetTextureCacheMaxCount(); |
| 18 | } |
| 19 | |
| 20 | // static |
| 21 | void SkGLCanvas::SetTextureCacheMaxCount(size_t count) { |
| 22 | SkGLDevice::SetTextureCacheMaxCount(count); |
| 23 | } |
| 24 | |
| 25 | // static |
| 26 | size_t SkGLCanvas::GetTextureCacheMaxSize() { |
| 27 | return SkGLDevice::GetTextureCacheMaxSize(); |
| 28 | } |
| 29 | |
| 30 | // static |
| 31 | void SkGLCanvas::SetTextureCacheMaxSize(size_t size) { |
| 32 | SkGLDevice::SetTextureCacheMaxSize(size); |
| 33 | } |
| 34 | |
| 35 | // static |
| 36 | void SkGLCanvas::DeleteAllTextures() { |
| 37 | SkGLDevice::DeleteAllTextures(); |
| 38 | } |
| 39 | |
| 40 | // static |
| 41 | void SkGLCanvas::AbandonAllTextures() { |
| 42 | SkGLDevice::AbandonAllTextures(); |
| 43 | } |