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

Unified Diff: cc/test/test_web_graphics_context_3d.h

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/test/test_gpu_memory_buffer_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 56c17c097a2c1111bd4876fdcbed5ce81684c84b..894f5893a770ac275ab9b080429fa3da877fd4b4 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -73,6 +73,23 @@ class TestWebGraphicsContext3D {
GLenum format,
GLenum type,
const void* pixels) {}
+ virtual void asyncCompressedTexImage2DCHROMIUM(GLenum target,
+ GLint level,
+ GLint internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLint border,
+ GLsizei imagesize,
+ const void* pixels) {}
+ virtual void asyncCompressedTexSubImage2DCHROMIUM(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLsizei imagesize,
+ const void* pixels) {}
virtual void waitAsyncTexImage2DCHROMIUM(GLenum target) {}
virtual void releaseTexImage2DCHROMIUM(GLenum target, GLint image_id) {}
virtual void framebufferRenderbuffer(GLenum target,
@@ -315,6 +332,12 @@ class TestWebGraphicsContext3D {
void set_support_compressed_texture_etc1(bool support) {
test_capabilities_.gpu.texture_format_etc1 = support;
}
+ void set_support_compressed_texture_atc(bool support) {
+ test_capabilities_.gpu.texture_format_atc = support;
+ }
+ void set_support_compressed_texture_dxt(bool support) {
+ test_capabilities_.gpu.texture_format_dxt = support;
+ }
void set_support_texture_format_bgra8888(bool support) {
test_capabilities_.gpu.texture_format_bgra8888 = support;
}
« no previous file with comments | « cc/test/test_gpu_memory_buffer_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698