Commit c08dcdb5 authored by ccameron@chromium.org's avatar ccameron@chromium.org

Mark textures allocated by impl-side painting's ResourcePool as

being managed (in the sense of being managed by the
GpuMemoryManager).

Without this, the memory allocated by the compositor is treated
as though it were, say, WebGL memory, and then marked as not
being available to the compositor, resulting in chaos.

BUG=168413

Review URL: https://chromiumcodereview.appspot.com/11938003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177096 0039d316-1c4b-4281-b951-d872f2087c98
parent 8b5902e1
......@@ -11,7 +11,7 @@ namespace cc {
ResourcePool::Resource::Resource(cc::ResourceProvider* resource_provider,
const gfx::Size& size,
GLenum format)
: cc::Resource(resource_provider->createResource(
: cc::Resource(resource_provider->createManagedResource(
size,
format,
ResourceProvider::TextureUsageAny),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment