| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |