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

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

Issue 14358014: gpu: Add EGL fence support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 unsigned GLSurface::GetFormat() { 139 unsigned GLSurface::GetFormat() {
140 NOTIMPLEMENTED(); 140 NOTIMPLEMENTED();
141 return 0; 141 return 0;
142 } 142 }
143 143
144 VSyncProvider* GLSurface::GetVSyncProvider() { 144 VSyncProvider* GLSurface::GetVSyncProvider() {
145 return NULL; 145 return NULL;
146 } 146 }
147 147
148 void GLSurface::SetMaximumFrameLatency(unsigned int frames) {
149 NOTIMPLEMENTED();
150 }
151
148 GLSurface* GLSurface::GetCurrent() { 152 GLSurface* GLSurface::GetCurrent() {
149 return current_surface_.Pointer()->Get(); 153 return current_surface_.Pointer()->Get();
150 } 154 }
151 155
152 GLSurface::~GLSurface() { 156 GLSurface::~GLSurface() {
153 if (GetCurrent() == this) 157 if (GetCurrent() == this)
154 SetCurrent(NULL); 158 SetCurrent(NULL);
155 } 159 }
156 160
157 void GLSurface::SetCurrent(GLSurface* surface) { 161 void GLSurface::SetCurrent(GLSurface* surface) {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 return surface_->GetFormat(); 249 return surface_->GetFormat();
246 } 250 }
247 251
248 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { 252 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() {
249 return surface_->GetVSyncProvider(); 253 return surface_->GetVSyncProvider();
250 } 254 }
251 255
252 GLSurfaceAdapter::~GLSurfaceAdapter() {} 256 GLSurfaceAdapter::~GLSurfaceAdapter() {}
253 257
254 } // namespace gfx 258 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | ui/gl/gl_surface_egl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698