Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1569)

Unified Diff: cc/resources/resource_provider.h

Issue 2235623003: cc: Add gfx::ColorSpace to cc::ResourceProvider resource creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/resource_pool_unittest.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index 0207d87d90a617b4a66f306637c7c4953aaf1bad..91ea858f3f1041281b6da287829956b0cba87048 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -135,14 +135,16 @@ class CC_EXPORT ResourceProvider
// Creates a resource of the default resource type.
ResourceId CreateResource(const gfx::Size& size,
TextureHint hint,
- ResourceFormat format);
+ ResourceFormat format,
+ const gfx::ColorSpace& color_space);
// Creates a resource for a particular texture target (the distinction between
// texture targets has no effect in software mode).
ResourceId CreateGpuMemoryBufferResource(const gfx::Size& size,
TextureHint hint,
ResourceFormat format,
- gfx::BufferUsage usage);
+ gfx::BufferUsage usage,
+ const gfx::ColorSpace& color_space);
// Wraps an external texture mailbox into a GL resource.
ResourceId CreateResourceFromTextureMailbox(
@@ -634,8 +636,10 @@ class CC_EXPORT ResourceProvider
TextureHint hint,
ResourceType type,
ResourceFormat format,
- gfx::BufferUsage usage);
- ResourceId CreateBitmap(const gfx::Size& size);
+ gfx::BufferUsage usage,
+ const gfx::ColorSpace& color_space);
+ ResourceId CreateBitmap(const gfx::Size& size,
+ const gfx::ColorSpace& color_space);
Resource* InsertResource(ResourceId id, Resource resource);
Resource* GetResource(ResourceId id);
const Resource* LockForRead(ResourceId id);
« no previous file with comments | « cc/resources/resource_pool_unittest.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698