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

Unified Diff: cc/test/test_web_graphics_context_3d.h

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@limits
Patch Set: move-limits: types Created 4 years, 8 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/test/test_in_process_context_provider.cc ('k') | cc/test/test_web_graphics_context_3d.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 4e1462971f5fa385d5639da6a5e17eafbf3fefc8..d37ef51e70dbd38b470e23ba46dbef71e65a3b76 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -284,7 +284,7 @@ class TestWebGraphicsContext3D {
return last_waited_sync_token_;
}
- const ContextProvider::Capabilities& test_capabilities() const {
+ const gpu::Capabilities& test_capabilities() const {
return test_capabilities_;
}
@@ -311,47 +311,45 @@ class TestWebGraphicsContext3D {
void ResetUsedTextures() { used_textures_.clear(); }
void set_have_extension_io_surface(bool have) {
- test_capabilities_.gpu.iosurface = have;
- test_capabilities_.gpu.texture_rectangle = have;
+ test_capabilities_.iosurface = have;
+ test_capabilities_.texture_rectangle = have;
}
void set_have_extension_egl_image(bool have) {
- test_capabilities_.gpu.egl_image_external = have;
+ test_capabilities_.egl_image_external = have;
}
void set_have_post_sub_buffer(bool have) {
- test_capabilities_.gpu.post_sub_buffer = have;
+ test_capabilities_.post_sub_buffer = have;
}
void set_have_commit_overlay_planes(bool have) {
- test_capabilities_.gpu.commit_overlay_planes = have;
+ test_capabilities_.commit_overlay_planes = have;
}
void set_have_discard_framebuffer(bool have) {
- test_capabilities_.gpu.discard_framebuffer = have;
+ test_capabilities_.discard_framebuffer = have;
}
void set_support_compressed_texture_etc1(bool support) {
- test_capabilities_.gpu.texture_format_etc1 = support;
+ test_capabilities_.texture_format_etc1 = support;
}
void set_support_texture_format_bgra8888(bool support) {
- test_capabilities_.gpu.texture_format_bgra8888 = support;
+ test_capabilities_.texture_format_bgra8888 = support;
}
void set_support_texture_storage(bool support) {
- test_capabilities_.gpu.texture_storage = support;
+ test_capabilities_.texture_storage = support;
}
void set_support_texture_usage(bool support) {
- test_capabilities_.gpu.texture_usage = support;
+ test_capabilities_.texture_usage = support;
}
void set_support_sync_query(bool support) {
- test_capabilities_.gpu.sync_query = support;
- }
- void set_support_image(bool support) {
- test_capabilities_.gpu.image = support;
+ test_capabilities_.sync_query = support;
}
+ void set_support_image(bool support) { test_capabilities_.image = support; }
void set_support_texture_rectangle(bool support) {
- test_capabilities_.gpu.texture_rectangle = support;
+ test_capabilities_.texture_rectangle = support;
}
void set_support_texture_half_float_linear(bool support) {
- test_capabilities_.gpu.texture_half_float_linear = support;
+ test_capabilities_.texture_half_float_linear = support;
}
void set_msaa_is_slow(bool msaa_is_slow) {
- test_capabilities_.gpu.msaa_is_slow = msaa_is_slow;
+ test_capabilities_.msaa_is_slow = msaa_is_slow;
}
// When this context is lost, all contexts in its share group are also lost.
@@ -377,11 +375,6 @@ class TestWebGraphicsContext3D {
virtual GLuint NextRenderbufferId();
virtual void RetireRenderbufferId(GLuint id);
- void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes);
- size_t max_used_transfer_buffer_usage_bytes() const {
- return max_used_transfer_buffer_usage_bytes_;
- }
-
void SetMaxSamples(int max_samples);
void set_test_support(TestContextSupport* test_support) {
test_support_ = test_support;
@@ -465,13 +458,11 @@ class TestWebGraphicsContext3D {
void CheckTextureIsBound(GLenum target);
unsigned context_id_;
- ContextProvider::Capabilities test_capabilities_;
+ gpu::Capabilities test_capabilities_;
int times_bind_texture_succeeds_;
int times_end_query_succeeds_;
bool context_lost_;
int times_map_buffer_chromium_succeeds_;
- int current_used_transfer_buffer_usage_bytes_;
- int max_used_transfer_buffer_usage_bytes_;
base::Closure context_lost_callback_;
std::unordered_set<unsigned> used_textures_;
unsigned next_program_id_;
« no previous file with comments | « cc/test/test_in_process_context_provider.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698