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

Unified Diff: cc/resources/resource_format.h

Issue 2885533002: cc: Allocate resources on worker context.
Patch Set: rebase Created 3 years, 6 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/raster/one_copy_raster_buffer_provider.cc ('k') | cc/resources/resource_format.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_format.h
diff --git a/cc/resources/resource_format.h b/cc/resources/resource_format.h
index 125a4ebf9c1b28424a5ca333d7a7cae8fa822472..ec847c1ccdb13ca6d702b126f1e51e2378cde7b7 100644
--- a/cc/resources/resource_format.h
+++ b/cc/resources/resource_format.h
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "cc/cc_export.h"
+#include "third_party/skia/include/gpu/GrTypes.h"
#include "ui/gfx/buffer_types.h"
// TODO(prashant.n): Including third_party/khronos/GLES2/gl2.h causes
@@ -37,6 +38,7 @@ CC_EXPORT GLenum GLDataFormat(ResourceFormat format);
CC_EXPORT GLenum GLInternalFormat(ResourceFormat format);
CC_EXPORT GLenum GLCopyTextureInternalFormat(ResourceFormat format);
CC_EXPORT gfx::BufferFormat BufferFormat(ResourceFormat format);
+CC_EXPORT GrPixelConfig ToGrPixelConfig(ResourceFormat format);
bool IsResourceFormatCompressed(ResourceFormat format);
bool DoesResourceFormatSupportAlpha(ResourceFormat format);
« no previous file with comments | « cc/raster/one_copy_raster_buffer_provider.cc ('k') | cc/resources/resource_format.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698