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

Unified Diff: ui/gl/gl_image_memory.h

Issue 916083002: Add support for compressed GPU memory buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: ui/gl/gl_image_memory.h
diff --git a/ui/gl/gl_image_memory.h b/ui/gl/gl_image_memory.h
index a50a38064b1574ad55f571bb76581e9922d9399f..3e648df7e09841e800a051cdfb5b32250031f7b5 100644
--- a/ui/gl/gl_image_memory.h
+++ b/ui/gl/gl_image_memory.h
@@ -51,6 +51,8 @@ class GL_EXPORT GLImageMemory : public GLImage {
private:
void DoBindTexImage(unsigned target);
+ size_t MemoryBytes(gfx::GpuMemoryBuffer::Format format);
+
const gfx::Size size_;
const unsigned internalformat_;
const unsigned char* memory_;

Powered by Google App Engine
This is Rietveld 408576698