| Index: cc/layer_tree_host.cc
|
| diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
|
| index 6a0f825a203009d51f37e9bb259ed75ec18ae4aa..0d7da692d6f47a23dc30d03f56e74a7d13e92218 100644
|
| --- a/cc/layer_tree_host.cc
|
| +++ b/cc/layer_tree_host.cc
|
| @@ -627,7 +627,7 @@ size_t LayerTreeHost::calculateMemoryForRenderSurfaces(const LayerList& updateLi
|
| Layer* renderSurfaceLayer = updateList[i].get();
|
| RenderSurface* renderSurface = renderSurfaceLayer->renderSurface();
|
|
|
| - size_t bytes = Texture::memorySizeBytes(renderSurface->contentRect().size(), GL_RGBA);
|
| + size_t bytes = Resource::memorySizeBytes(renderSurface->contentRect().size(), GL_RGBA);
|
| contentsTextureBytes += bytes;
|
|
|
| if (renderSurfaceLayer->backgroundFilters().isEmpty())
|
| @@ -636,7 +636,7 @@ size_t LayerTreeHost::calculateMemoryForRenderSurfaces(const LayerList& updateLi
|
| if (bytes > maxBackgroundTextureBytes)
|
| maxBackgroundTextureBytes = bytes;
|
| if (!readbackBytes)
|
| - readbackBytes = Texture::memorySizeBytes(m_deviceViewportSize, GL_RGBA);
|
| + readbackBytes = Resource::memorySizeBytes(m_deviceViewportSize, GL_RGBA);
|
| }
|
| return readbackBytes + maxBackgroundTextureBytes + contentsTextureBytes;
|
| }
|
|
|