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

Side by Side Diff: ui/gl/init/gl_factory_ozone.cc

Issue 2461803002: Enable creation of offscreen contexts which own their backing surface. (Closed)
Patch Set: Drop unnecessary dependent patch Created 4 years, 1 month 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698