aw: Fix HardwareView for instrumentation tests
* Implement detachGLFunctor. The contract here is after detachGLFunctor is called, DrawGL is no longer called until the next requestDrawGL. Implement just with a mFunctorAttached variable. * Only create one HardwareView. Each GLSurfaceView creates its own GL thread, but we only assume a single render thread. Using SurfaceView or hosting multiple AwContents in the same GLSurfaceView is too hard, so just do the simplest thing, and create the first view has hardware accelerated. BUG=416981 Review URL: https://codereview.chromium.org/594333002 Cr-Commit-Position: refs/heads/master@{#296261}
Showing
Please register or sign in to comment