Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc

Issue 665503002: Stop using legacy GrContext member function aliases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
diff --git a/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc b/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc
index fb2013c922270c856ac3dca16016a7f7ef2a5077..ae45c83bbb13c698e1d1f1a1138ac0ed287b58ab 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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698