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

Unified Diff: gles/opengles_visitor.h

Issue 3599002: wm: Add two pass rendering to OpenGL|ES backend. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/window_manager.git
Patch Set: final. Created 10 years, 2 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 | « gles/gles2_interface.h ('k') | gles/opengles_visitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gles/opengles_visitor.h
diff --git a/gles/opengles_visitor.h b/gles/opengles_visitor.h
index aed8f93446f42e33482ebf63767cd4804021bc42..b4f6a4e729be975eab46b643d31f09598b0ac8ae 100644
--- a/gles/opengles_visitor.h
+++ b/gles/opengles_visitor.h
@@ -45,12 +45,10 @@ class OpenGlesDrawVisitor : virtual public RealCompositor::ActorVisitor {
virtual void VisitActor(RealCompositor::Actor* actor) {}
virtual void VisitStage(RealCompositor::StageActor* actor);
- virtual void VisitContainer(RealCompositor::ContainerActor* actor);
- virtual void VisitImage(RealCompositor::ImageActor* actor) {
- VisitQuad(actor);
- }
- virtual void VisitTexturePixmap(RealCompositor::TexturePixmapActor* actor);
- virtual void VisitQuad(RealCompositor::QuadActor* actor);
+
+ void DrawQuad(RealCompositor::QuadActor* actor,
+ float ancestor_opacity) const;
+ void CreateTextureData(RealCompositor::TexturePixmapActor *actor) const;
private:
Gles2Interface* gl_; // Not owned.
@@ -70,15 +68,10 @@ class OpenGlesDrawVisitor : virtual public RealCompositor::ActorVisitor {
// Matrix state
Matrix4 projection_;
- // Cumulative opacity of the ancestors
- float ancestor_opacity_;
// global vertex buffer object
GLuint vertex_buffer_object_;
- // Temporary storage for client side vertex colors
- GLfloat colors_[4 * 4];
-
// This is used to indicate whether the entire screen will be covered by an
// actor so we can optimize by not clearing the COLOR_BUFFER_BIT.
bool has_fullscreen_actor_;
« no previous file with comments | « gles/gles2_interface.h ('k') | gles/opengles_visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698