OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ui/gl/init/gl_factory.h" | 5 #include "ui/gl/init/gl_factory.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
9 #include "ui/gl/gl_context.h" | 9 #include "ui/gl/gl_context.h" |
10 #include "ui/gl/gl_context_egl.h" | 10 #include "ui/gl/gl_context_egl.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
139 | 139 |
140 if (HasDefaultImplementation(GetGLImplementation())) | 140 if (HasDefaultImplementation(GetGLImplementation())) |
141 return CreateDefaultOffscreenGLSurface(size); | 141 return CreateDefaultOffscreenGLSurface(size); |
142 | 142 |
143 // TODO(kylechar): This is deprecated and can be removed once all Ozone | 143 // TODO(kylechar): This is deprecated and can be removed once all Ozone |
144 // platforms use GLOzone instead. | 144 // platforms use GLOzone instead. |
145 return GetSurfaceFactoryOzone()->CreateOffscreenGLSurface( | 145 return GetSurfaceFactoryOzone()->CreateOffscreenGLSurface( |
146 GetGLImplementation(), size); | 146 GetGLImplementation(), size); |
147 } | 147 } |
148 | 148 |
149 scoped_refptr<GLSurface> CreateUninitializedOffscreenGLSurface( | |
150 const gfx::Size& size) { | |
151 return CreateOffscreenGLSurface(size); | |
piman
2016/11/16 00:44:03
That will return an initialized surface, and it wi
klausw
2017/01/05 02:17:43
Moot, now using CreateOffscreenGLSurfaceWithFormat
| |
152 } | |
153 | |
149 } // namespace init | 154 } // namespace init |
150 } // namespace gl | 155 } // namespace gl |
OLD | NEW |