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

Side by Side Diff: compositor/gl/opengl_visitor.h

Issue 6793005: Add the xrender backend to the window manager. (Closed) Base URL: ssh://gitrw.chromium.org:9222/window_manager.git@master
Patch Set: Address fourth round of comments. Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « SConstruct ('k') | compositor/gl/opengl_visitor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WINDOW_MANAGER_COMPOSITOR_GL_OPENGL_VISITOR_H_ 5 #ifndef WINDOW_MANAGER_COMPOSITOR_GL_OPENGL_VISITOR_H_
6 #define WINDOW_MANAGER_COMPOSITOR_GL_OPENGL_VISITOR_H_ 6 #define WINDOW_MANAGER_COMPOSITOR_GL_OPENGL_VISITOR_H_
7 7
8 #include <GL/glx.h> 8 #include <GL/glx.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual ~OpenGlDrawVisitor(); 77 virtual ~OpenGlDrawVisitor();
78 78
79 XConnection* xconn() { return xconn_; } 79 XConnection* xconn() { return xconn_; }
80 void set_has_fullscreen_actor(bool has_fullscreen_actor) { 80 void set_has_fullscreen_actor(bool has_fullscreen_actor) {
81 has_fullscreen_actor_ = has_fullscreen_actor; 81 has_fullscreen_actor_ = has_fullscreen_actor;
82 } 82 }
83 void set_damaged_region(const Rect& damaged_region) { 83 void set_damaged_region(const Rect& damaged_region) {
84 damaged_region_ = damaged_region; 84 damaged_region_ = damaged_region;
85 } 85 }
86 86
87 void BindImage(const ImageContainer* container, 87 void BindImage(const ImageContainer& container,
88 RealCompositor::ImageActor* actor); 88 RealCompositor::ImageActor* actor);
89 89
90 virtual void VisitActor(RealCompositor::Actor* actor) {} 90 virtual void VisitActor(RealCompositor::Actor* actor) {}
91 virtual void VisitStage(RealCompositor::StageActor* actor); 91 virtual void VisitStage(RealCompositor::StageActor* actor);
92 virtual void VisitContainer(RealCompositor::ContainerActor* actor); 92 virtual void VisitContainer(RealCompositor::ContainerActor* actor);
93 virtual void VisitImage(RealCompositor::ImageActor* actor); 93 virtual void VisitImage(RealCompositor::ImageActor* actor);
94 virtual void VisitTexturePixmap(RealCompositor::TexturePixmapActor* actor); 94 virtual void VisitTexturePixmap(RealCompositor::TexturePixmapActor* actor);
95 virtual void VisitQuad(RealCompositor::QuadActor* actor); 95 virtual void VisitQuad(RealCompositor::QuadActor* actor);
96 96
97 private: 97 private:
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // This is used to indicate whether the entire screen will be covered by an 183 // This is used to indicate whether the entire screen will be covered by an
184 // actor so we can optimize by not clearing the COLOR_BUFFER_BIT. 184 // actor so we can optimize by not clearing the COLOR_BUFFER_BIT.
185 bool has_fullscreen_actor_; 185 bool has_fullscreen_actor_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(OpenGlDrawVisitor); 187 DISALLOW_COPY_AND_ASSIGN(OpenGlDrawVisitor);
188 }; 188 };
189 189
190 } // namespace window_manager 190 } // namespace window_manager
191 191
192 #endif // WINDOW_MANAGER_COMPOSITOR_GL_OPENGL_VISITOR_H_ 192 #endif // WINDOW_MANAGER_COMPOSITOR_GL_OPENGL_VISITOR_H_
OLDNEW
« no previous file with comments | « SConstruct ('k') | compositor/gl/opengl_visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698