summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorbsalomon <bsalomon@google.com>2014-10-16 16:00:34 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-16 23:00:55 +0000
commitc7fe745b7bc2d00be15b7308fd54248ebb7cd1ca (patch)
tree7f28ed71d45a5873846faa0c4c7070f49bcf2bad /webkit
parent2a04445358913b81ed786927172647b701b73113 (diff)
downloadchromium_src-c7fe745b7bc2d00be15b7308fd54248ebb7cd1ca.zip
chromium_src-c7fe745b7bc2d00be15b7308fd54248ebb7cd1ca.tar.gz
chromium_src-c7fe745b7bc2d00be15b7308fd54248ebb7cd1ca.tar.bz2
Stop using legacy GrContext member function aliases.
Review URL: https://codereview.chromium.org/665503002 Cr-Commit-Position: refs/heads/master@{#300001}
Diffstat (limited to 'webkit')
-rw-r--r--webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc b/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
index fb2013c..ae45c83 100644
--- a/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
+++ b/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
@@ -58,15 +58,15 @@ GrContextForWebGraphicsContext3D::GrContextForWebGraphicsContext3D(
kOpenGL_GrBackend,
reinterpret_cast<GrBackendContext>(interface.get())));
if (gr_context_) {
- // The limit of the number of textures we hold in the GrContext's
- // bitmap->texture cache.
- static const int kMaxGaneshTextureCacheCount = 2048;
- // The limit of the bytes allocated toward textures in the GrContext's
- // bitmap->texture cache.
- static const size_t kMaxGaneshTextureCacheBytes = 96 * 1024 * 1024;
-
- gr_context_->setTextureCacheLimits(kMaxGaneshTextureCacheCount,
- kMaxGaneshTextureCacheBytes);
+ // The limit of the number of GPU resources we hold in the GrContext's
+ // GPU cache.
+ static const int kMaxGaneshResourceCacheCount = 2048;
+ // The limit of the bytes allocated toward GPU resources in the GrContext's
+ // GPU cache.
+ static const size_t kMaxGaneshResourceCacheBytes = 96 * 1024 * 1024;
+
+ gr_context_->setResourceCacheLimits(kMaxGaneshResourceCacheCount,
+ kMaxGaneshResourceCacheBytes);
}
}
@@ -75,7 +75,7 @@ GrContextForWebGraphicsContext3D::~GrContextForWebGraphicsContext3D() {
void GrContextForWebGraphicsContext3D::OnLostContext() {
if (gr_context_)
- gr_context_->contextDestroyed();
+ gr_context_->abandonContext();
}
void GrContextForWebGraphicsContext3D::FreeGpuResources() {