From a7f3568e1e8421fd6a489a87894e779eeec03dfa Mon Sep 17 00:00:00 2001 From: "jbauman@chromium.org" Date: Tue, 22 Oct 2013 23:05:57 +0000 Subject: Add delegated rendering support for software renderer. This patch adds support to cc/ for delegated rendering with a software compositor. A new SharedBitmapManager is added, which will create SharedBitmaps with unique IDs in shared memory. These can be filled in the child, and their IDs can be sent to the browser so it can map them and draw from them. No implementations of the SharedBitmapManager are added in this patch, so delegated rendering support won't work in practice yet, and it will fall back to not allocating anything in shared memory. BUG= Review URL: https://codereview.chromium.org/24632004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230245 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/resources/scoped_resource_unittest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cc/resources/scoped_resource_unittest.cc') diff --git a/cc/resources/scoped_resource_unittest.cc b/cc/resources/scoped_resource_unittest.cc index 8b59995..dc0df8b 100644 --- a/cc/resources/scoped_resource_unittest.cc +++ b/cc/resources/scoped_resource_unittest.cc @@ -19,7 +19,7 @@ TEST(ScopedResourceTest, NewScopedResource) { CHECK(output_surface->BindToClient(&output_surface_client)); scoped_ptr resource_provider( - ResourceProvider::Create(output_surface.get(), 0, false)); + ResourceProvider::Create(output_surface.get(), NULL, 0, false)); scoped_ptr texture = ScopedResource::create(resource_provider.get()); @@ -37,7 +37,7 @@ TEST(ScopedResourceTest, CreateScopedResource) { CHECK(output_surface->BindToClient(&output_surface_client)); scoped_ptr resource_provider( - ResourceProvider::Create(output_surface.get(), 0, false)); + ResourceProvider::Create(output_surface.get(), NULL, 0, false)); scoped_ptr texture = ScopedResource::create(resource_provider.get()); texture->Allocate(gfx::Size(30, 30), @@ -59,7 +59,7 @@ TEST(ScopedResourceTest, ScopedResourceIsDeleted) { CHECK(output_surface->BindToClient(&output_surface_client)); scoped_ptr resource_provider( - ResourceProvider::Create(output_surface.get(), 0, false)); + ResourceProvider::Create(output_surface.get(), NULL, 0, false)); { scoped_ptr texture = ScopedResource::create(resource_provider.get()); @@ -93,7 +93,7 @@ TEST(ScopedResourceTest, LeakScopedResource) { CHECK(output_surface->BindToClient(&output_surface_client)); scoped_ptr resource_provider( - ResourceProvider::Create(output_surface.get(), 0, false)); + ResourceProvider::Create(output_surface.get(), NULL, 0, false)); { scoped_ptr texture = ScopedResource::create(resource_provider.get()); -- cgit v1.1