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

Unified Diff: cc/geometry_binding.h

Issue 11415161: Texture Draw Calls Coalescing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved { to line above Created 8 years, 1 month 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/direct_renderer.cc ('k') | cc/geometry_binding.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/geometry_binding.h
diff --git a/cc/geometry_binding.h b/cc/geometry_binding.h
index 717ec6b099a84abd14babdc6f29257f755b705cd..6a8bfde541e06eed4d4984cfc151edf51a735d3d 100644
--- a/cc/geometry_binding.h
+++ b/cc/geometry_binding.h
@@ -25,6 +25,7 @@ public:
WebKit::WebGraphicsContext3D* context() const { return m_context; }
unsigned quadVerticesVbo() const { return m_quadVerticesVbo; }
unsigned quadElementsVbo() const { return m_quadElementsVbo; }
+ unsigned quadListVerticesVbo() const { return m_quadListVerticesVbo; }
void prepareForDraw();
@@ -33,14 +34,18 @@ public:
// rebinding attribute arrays.
static int positionAttribLocation() { return 0; }
static int texCoordAttribLocation() { return 1; }
+ static int triangleIndexAttribLocation() { return 2; }
private:
WebKit::WebGraphicsContext3D* m_context;
+ bool m_initialized;
+
unsigned m_quadVerticesVbo;
unsigned m_quadElementsVbo;
- bool m_initialized;
+ unsigned m_quadListVerticesVbo;
};
} // namespace cc
-#endif // CC_GEOMETRY_BINDING_H_
+#endif // CC_GEOMETRY_BINDING_H_
+
« no previous file with comments | « cc/direct_renderer.cc ('k') | cc/geometry_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698