Chromium Code Reviews| 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 db313a1710a775669e26635da96ad6a2324ce0c7..a5489a2fb077a0e2e857dc3a88358be9b9aceac3 100644 |
| --- a/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc |
| +++ b/webkit/common/gpu/grcontext_for_webgraphicscontext3d.cc |
| @@ -59,17 +59,6 @@ GrContextForWebGraphicsContext3D::GrContextForWebGraphicsContext3D( |
| gr_context_ = skia::AdoptRef(GrContext::Create( |
| kOpenGL_GrBackend, |
| reinterpret_cast<GrBackendContext>(interface.get()))); |
| - if (gr_context_) { |
| - // 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); |
|
vmiura
2015/04/02 19:12:34
I'm not sure it's OK to remove this initialization
sohanjg
2015/04/08 09:00:31
Acknowledged.
Added it back.
|
| - } |
| } |
| GrContextForWebGraphicsContext3D::~GrContextForWebGraphicsContext3D() { |