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

Side by Side Diff: ui/gl/gl_surface.cc

Issue 2067503003: Add a new command buffer function glScheduleCALayerInUseQueryCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include gl_image.h Created 4 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
« no previous file with comments | « ui/gl/gl_surface.h ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/gl_surface.h" 5 #include "ui/gl/gl_surface.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "base/threading/thread_local.h" 13 #include "base/threading/thread_local.h"
14 #include "base/trace_event/trace_event.h" 14 #include "base/trace_event/trace_event.h"
15 #include "ui/gfx/swap_result.h" 15 #include "ui/gfx/swap_result.h"
16 #include "ui/gl/gl_context.h" 16 #include "ui/gl/gl_context.h"
17 #include "ui/gl/gl_image.h"
17 #include "ui/gl/gl_implementation.h" 18 #include "ui/gl/gl_implementation.h"
18 #include "ui/gl/gl_switches.h" 19 #include "ui/gl/gl_switches.h"
19 20
20 namespace gl { 21 namespace gl {
21 22
22 namespace { 23 namespace {
23 base::LazyInstance<base::ThreadLocalPointer<GLSurface> >::Leaky 24 base::LazyInstance<base::ThreadLocalPointer<GLSurface> >::Leaky
24 current_surface_ = LAZY_INSTANCE_INITIALIZER; 25 current_surface_ = LAZY_INSTANCE_INITIALIZER;
25 } // namespace 26 } // namespace
26 27
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const gfx::RectF& rect, 145 const gfx::RectF& rect,
145 bool is_clipped, 146 bool is_clipped,
146 const gfx::RectF& clip_rect, 147 const gfx::RectF& clip_rect,
147 const gfx::Transform& transform, 148 const gfx::Transform& transform,
148 int sorting_content_id, 149 int sorting_content_id,
149 unsigned filter) { 150 unsigned filter) {
150 NOTIMPLEMENTED(); 151 NOTIMPLEMENTED();
151 return false; 152 return false;
152 } 153 }
153 154
155 void GLSurface::ScheduleCALayerInUseQuery(
156 std::vector<CALayerInUseQuery> queries) {
157 NOTIMPLEMENTED();
158 }
159
154 bool GLSurface::IsSurfaceless() const { 160 bool GLSurface::IsSurfaceless() const {
155 return false; 161 return false;
156 } 162 }
157 163
158 bool GLSurface::FlipsVertically() const { 164 bool GLSurface::FlipsVertically() const {
159 return false; 165 return false;
160 } 166 }
161 167
162 bool GLSurface::BuffersFlipped() const { 168 bool GLSurface::BuffersFlipped() const {
163 return false; 169 return false;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 338 }
333 339
334 GLSurfaceAdapter::~GLSurfaceAdapter() {} 340 GLSurfaceAdapter::~GLSurfaceAdapter() {}
335 341
336 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) { 342 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) {
337 if (!surface->Initialize()) 343 if (!surface->Initialize())
338 return nullptr; 344 return nullptr;
339 return surface; 345 return surface;
340 } 346 }
341 347
348 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default;
349 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) =
350 default;
351 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default;
352
342 } // namespace gl 353 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698