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

Unified Diff: cc/test/test_web_graphics_context_3d.h

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo Created 5 years, 11 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/layer_tree_pixel_resource_test.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 0c001d2e52761576ccfe5534a514c2e2036996df..31182f81fd1eaa501ebbecaee71cb7ff64083234 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -352,6 +352,12 @@ class TestWebGraphicsContext3D {
virtual GLuint NextImageId();
virtual void RetireImageId(GLuint id);
+ virtual GLuint NextFramebufferId();
+ virtual void RetireFramebufferId(GLuint id);
+
+ 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_;
@@ -422,9 +428,11 @@ class TestWebGraphicsContext3D {
unsigned next_buffer_id;
unsigned next_image_id;
unsigned next_texture_id;
+ unsigned next_renderbuffer_id;
base::ScopedPtrHashMap<unsigned, Buffer> buffers;
base::hash_set<unsigned> images;
OrderedTextureMap textures;
+ base::hash_set<unsigned> renderbuffer_set;
private:
friend class base::RefCountedThreadSafe<Namespace>;
@@ -453,6 +461,9 @@ class TestWebGraphicsContext3D {
base::hash_set<unsigned> program_set_;
unsigned next_shader_id_;
base::hash_set<unsigned> shader_set_;
+ unsigned next_framebuffer_id_;
+ base::hash_set<unsigned> framebuffer_set_;
+ unsigned current_framebuffer_;
std::vector<TestWebGraphicsContext3D*> shared_contexts_;
int max_texture_size_;
bool reshape_called_;
« no previous file with comments | « cc/test/layer_tree_pixel_resource_test.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