| 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_GLES_GLES_VISITOR_H_ | 5 #ifndef WINDOW_MANAGER_COMPOSITOR_GLES_GLES_VISITOR_H_ |
| 6 #define WINDOW_MANAGER_COMPOSITOR_GLES_GLES_VISITOR_H_ | 6 #define WINDOW_MANAGER_COMPOSITOR_GLES_GLES_VISITOR_H_ |
| 7 | 7 |
| 8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 #include <EGL/egl.h> | 9 #include <EGL/egl.h> |
| 10 #include <EGL/eglext.h> | 10 #include <EGL/eglext.h> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 RealCompositor* compositor, | 33 RealCompositor* compositor, |
| 34 Compositor::StageActor* stage); | 34 Compositor::StageActor* stage); |
| 35 virtual ~OpenGlesDrawVisitor(); | 35 virtual ~OpenGlesDrawVisitor(); |
| 36 void set_has_fullscreen_actor(bool has_fullscreen_actor) { | 36 void set_has_fullscreen_actor(bool has_fullscreen_actor) { |
| 37 has_fullscreen_actor_ = has_fullscreen_actor; | 37 has_fullscreen_actor_ = has_fullscreen_actor; |
| 38 } | 38 } |
| 39 void set_damaged_region(const Rect& damaged_region) { | 39 void set_damaged_region(const Rect& damaged_region) { |
| 40 damaged_region_ = damaged_region; | 40 damaged_region_ = damaged_region; |
| 41 } | 41 } |
| 42 | 42 |
| 43 void BindImage(const ImageContainer* container, | 43 void BindImage(const ImageContainer& container, |
| 44 RealCompositor::QuadActor* actor); | 44 RealCompositor::QuadActor* actor); |
| 45 | 45 |
| 46 virtual void VisitActor(RealCompositor::Actor* actor) {} | 46 virtual void VisitActor(RealCompositor::Actor* actor) {} |
| 47 virtual void VisitStage(RealCompositor::StageActor* actor); | 47 virtual void VisitStage(RealCompositor::StageActor* actor); |
| 48 virtual void VisitContainer(RealCompositor::ContainerActor* actor); | 48 virtual void VisitContainer(RealCompositor::ContainerActor* actor); |
| 49 virtual void VisitImage(RealCompositor::ImageActor* actor); | 49 virtual void VisitImage(RealCompositor::ImageActor* actor); |
| 50 virtual void VisitTexturePixmap(RealCompositor::TexturePixmapActor* actor); | 50 virtual void VisitTexturePixmap(RealCompositor::TexturePixmapActor* actor); |
| 51 virtual void VisitQuad(RealCompositor::QuadActor* actor); | 51 virtual void VisitQuad(RealCompositor::QuadActor* actor); |
| 52 | 52 |
| 53 void DrawQuad(RealCompositor::QuadActor* actor, | 53 void DrawQuad(RealCompositor::QuadActor* actor, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // Not owned. | 152 // Not owned. |
| 153 Gles2Interface* gl_; | 153 Gles2Interface* gl_; |
| 154 | 154 |
| 155 // EGLImage | 155 // EGLImage |
| 156 EGLImageKHR egl_image_; | 156 EGLImageKHR egl_image_; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 } // namespace window_manager | 159 } // namespace window_manager |
| 160 | 160 |
| 161 #endif // WINDOW_MANAGER_COMPOSITOR_GLES_GLES_VISITOR_H_ | 161 #endif // WINDOW_MANAGER_COMPOSITOR_GLES_GLES_VISITOR_H_ |
| OLD | NEW |