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

Side by Side Diff: gpu/command_buffer/service/async_pixel_transfer_manager_egl.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "gpu/command_buffer/service/async_pixel_transfer_manager_egl.h" 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_egl.h"
6 6
7 #include <list> 7 #include <list>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 #if defined(OS_ANDROID) || defined(OS_LINUX) 95 #if defined(OS_ANDROID) || defined(OS_LINUX)
96 SetPriority(base::kThreadPriority_Background); 96 SetPriority(base::kThreadPriority_Background);
97 #endif 97 #endif
98 } 98 }
99 virtual ~TransferThread() { 99 virtual ~TransferThread() {
100 Stop(); 100 Stop();
101 } 101 }
102 102
103 virtual void Init() OVERRIDE { 103 virtual void Init() OVERRIDE {
104 gfx::GLShareGroup* share_group = NULL; 104 gfx::GLShareGroup* share_group = NULL;
105 bool software = false; 105 surface_ = new gfx::PbufferGLSurfaceEGL(gfx::Size(1, 1));
106 surface_ = new gfx::PbufferGLSurfaceEGL(software, gfx::Size(1,1));
107 surface_->Initialize(); 106 surface_->Initialize();
108 context_ = gfx::GLContext::CreateGLContext( 107 context_ = gfx::GLContext::CreateGLContext(
109 share_group, surface_.get(), gfx::PreferDiscreteGpu); 108 share_group, surface_.get(), gfx::PreferDiscreteGpu);
110 bool is_current = context_->MakeCurrent(surface_.get()); 109 bool is_current = context_->MakeCurrent(surface_.get());
111 DCHECK(is_current); 110 DCHECK(is_current);
112 } 111 }
113 112
114 virtual void CleanUp() OVERRIDE { 113 virtual void CleanUp() OVERRIDE {
115 surface_ = NULL; 114 surface_ = NULL;
116 context_->ReleaseCurrent(surface_.get()); 115 context_->ReleaseCurrent(surface_.get());
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 760
762 AsyncPixelTransferDelegate* 761 AsyncPixelTransferDelegate*
763 AsyncPixelTransferManagerEGL::CreatePixelTransferDelegateImpl( 762 AsyncPixelTransferManagerEGL::CreatePixelTransferDelegateImpl(
764 gles2::TextureRef* ref, 763 gles2::TextureRef* ref,
765 const AsyncTexImage2DParams& define_params) { 764 const AsyncTexImage2DParams& define_params) {
766 return new AsyncPixelTransferDelegateEGL( 765 return new AsyncPixelTransferDelegateEGL(
767 &shared_state_, ref->service_id(), define_params); 766 &shared_state_, ref->service_id(), define_params);
768 } 767 }
769 768
770 } // namespace gpu 769 } // namespace gpu
OLDNEW
« no previous file with comments | « content/gpu/gpu_main.cc ('k') | gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698