From 655041fca6018aeb1aba86201d50e68beb0c9ee6 Mon Sep 17 00:00:00 2001 From: "dongseong.hwang@intel.com" Date: Thu, 21 Aug 2014 22:58:58 +0000 Subject: cc: Use a normal texture for background texture. We prefer immutable texture to mutable texture and normal texture to framebuffer target texture. There are 3 changes; 1. Introduce TextureHint enum to clarify immutable and framebuffer target. 2. The texture for render pass and background filter target is changed from mutable framebuffer texture to immutable framebuffer texture. 3. The texture for background filter source is changed from mutable framebuffer texture to mutable texture. TEST=ResourceProviderTest.TextureHint, ResourceProviderTest.TextureAllocationHint BUG=404986 Review URL: https://codereview.chromium.org/486853002 Cr-Commit-Position: refs/heads/master@{#291223} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291223 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/test/test_web_graphics_context_3d.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cc/test/test_web_graphics_context_3d.h') diff --git a/cc/test/test_web_graphics_context_3d.h b/cc/test/test_web_graphics_context_3d.h index abdb8c1..a7d5e0b 100644 --- a/cc/test/test_web_graphics_context_3d.h +++ b/cc/test/test_web_graphics_context_3d.h @@ -307,6 +307,9 @@ class TestWebGraphicsContext3D { void set_support_texture_storage(bool support) { test_capabilities_.gpu.texture_storage = support; } + void set_support_texture_usage(bool support) { + test_capabilities_.gpu.texture_usage = support; + } void set_support_sync_query(bool support) { test_capabilities_.gpu.sync_query = support; } -- cgit v1.1