OSDN Git Service

Fixup 2D app patch, forgot to remove unused variable
authorAlbert Chaulk <achaulk@google.com>
Fri, 3 Feb 2017 22:00:39 +0000 (17:00 -0500)
committerAlex Vakulenko <avakulenko@google.com>
Sat, 4 Feb 2017 00:04:16 +0000 (16:04 -0800)
Bug: None
Test: permissiongen to check non-2d app uage
Change-Id: I712083dfe417eb5549b78dc7ab1ee37faa042338

services/vr/vr_window_manager/shell_view.cpp
services/vr/vr_window_manager/shell_view.h

index 109aecd..11680af 100644 (file)
@@ -349,7 +349,7 @@ void ShellView::OnDrawFrame() {
 
   surface_flinger_view_->GetTextures(*current_frame_.frame.get(), &textures_,
                                      &ime_texture_, debug_mode_,
-                                     view_mode_ == ViewMode::VR);
+                                     current_frame_.visibility == ViewMode::VR);
   has_ime_ = ime_texture_.texture != nullptr;
 }
 
index a70b7ad..ba46e6d 100644 (file)
@@ -72,7 +72,6 @@ class ShellView : public Application, public HwcCallback::Client {
   std::unique_ptr<ShaderProgram> overlay_program_;
   std::unique_ptr<ShaderProgram> controller_program_;
 
-  ViewMode view_mode_ = ViewMode::Hidden;
   // This starts at -1 so we don't call ReleaseFrame for the first frame.
   int skipped_frame_count_ = -1;