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

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

Issue 2771053003: WIP: Plumbing input event latency reporting through Mus GPU.
Patch Set: Plumb through SetLatencyInfo instead of exposing InProcessCommandBuffer. Created 3 years, 9 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
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"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 std::string delimited_name(name); 208 std::string delimited_name(name);
209 delimited_name += " "; 209 delimited_name += " ";
210 210
211 return extensions.find(delimited_name) != std::string::npos; 211 return extensions.find(delimited_name) != std::string::npos;
212 } 212 }
213 213
214 void GLSurface::OnSetSwapInterval(int interval) { 214 void GLSurface::OnSetSwapInterval(int interval) {
215 } 215 }
216 216
217 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} 217 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {
218 LOG(ERROR) << "GLSurfaceAdapter ctor";
219 }
218 220
219 bool GLSurfaceAdapter::Initialize(GLSurfaceFormat format) { 221 bool GLSurfaceAdapter::Initialize(GLSurfaceFormat format) {
220 return surface_->Initialize(format); 222 return surface_->Initialize(format);
221 } 223 }
222 224
223 void GLSurfaceAdapter::Destroy() { 225 void GLSurfaceAdapter::Destroy() {
224 surface_->Destroy(); 226 surface_->Destroy();
225 } 227 }
226 228
227 bool GLSurfaceAdapter::Resize(const gfx::Size& size, 229 bool GLSurfaceAdapter::Resize(const gfx::Size& size,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) { 401 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) {
400 return InitializeGLSurfaceWithFormat(surface, GLSurfaceFormat()); 402 return InitializeGLSurfaceWithFormat(surface, GLSurfaceFormat());
401 } 403 }
402 404
403 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; 405 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default;
404 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = 406 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) =
405 default; 407 default;
406 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; 408 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default;
407 409
408 } // namespace gl 410 } // namespace gl
OLDNEW
« services/ui/surfaces/display_output_surface.h ('K') | « ui/events/mojo/latency_info.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698