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

Side by Side Diff: gpu/command_buffer/tests/gl_unittests_android.cc

Issue 17110007: Delete usage and support for EGL_ANGLE_software_display extension. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/config/gpu_info_collector.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium 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 #include <GLES2/gl2.h> 5 #include <GLES2/gl2.h>
6 #include <GLES2/gl2ext.h> 6 #include <GLES2/gl2ext.h>
7 7
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 26 matching lines...) Expand all
37 // TODO(sievers): Eliminate the need for this by using a client-side 37 // TODO(sievers): Eliminate the need for this by using a client-side
38 // abstraction for the SurfaceTexture in this test. 38 // abstraction for the SurfaceTexture in this test.
39 GLuint texture = 0xFEEDBEEF; 39 GLuint texture = 0xFEEDBEEF;
40 40
41 scoped_refptr<gfx::SurfaceTextureBridge> surface_texture( 41 scoped_refptr<gfx::SurfaceTextureBridge> surface_texture(
42 new gfx::SurfaceTextureBridge(texture)); 42 new gfx::SurfaceTextureBridge(texture));
43 gfx::AcceleratedWidget window = surface_texture->CreateSurface(); 43 gfx::AcceleratedWidget window = surface_texture->CreateSurface();
44 EXPECT_TRUE(window != NULL); 44 EXPECT_TRUE(window != NULL);
45 45
46 scoped_refptr<gfx::GLSurface> gl_surface = 46 scoped_refptr<gfx::GLSurface> gl_surface =
47 gfx::GLSurface::CreateViewGLSurface(false, window); 47 gfx::GLSurface::CreateViewGLSurface(window);
48 EXPECT_TRUE(gl_surface.get() != NULL); 48 EXPECT_TRUE(gl_surface.get() != NULL);
49 49
50 gl_.SetSurface(gl_surface.get()); 50 gl_.SetSurface(gl_surface.get());
51 51
52 glClearColor(0.0f, 1.0f, 0.0f, 1.0f); 52 glClearColor(0.0f, 1.0f, 0.0f, 1.0f);
53 glClear(GL_COLOR_BUFFER_BIT); 53 glClear(GL_COLOR_BUFFER_BIT);
54 // glSwapBuffers(); 54 // glSwapBuffers();
55 55
56 surface_texture->UpdateTexImage(); 56 surface_texture->UpdateTexImage();
57 57
58 GLTestHelper::CheckGLError("no errors", __LINE__); 58 GLTestHelper::CheckGLError("no errors", __LINE__);
59 59
60 ANativeWindow_release(window); 60 ANativeWindow_release(window);
61 } 61 }
62 62
63 } // namespace gpu 63 } // namespace gpu
64 64
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/config/gpu_info_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698