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

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

Issue 1583283004: Ensure alpha channel in backbuffer is correct with DirectComposition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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') | ui/gl/gl_surface_egl.h » ('j') | 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"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 216 }
217 217
218 bool GLSurface::IsSurfaceless() const { 218 bool GLSurface::IsSurfaceless() const {
219 return false; 219 return false;
220 } 220 }
221 221
222 bool GLSurface::FlipsVertically() const { 222 bool GLSurface::FlipsVertically() const {
223 return false; 223 return false;
224 } 224 }
225 225
226 bool GLSurface::BuffersFlipped() const {
227 return false;
228 }
229
226 GLSurface* GLSurface::GetCurrent() { 230 GLSurface* GLSurface::GetCurrent() {
227 return current_surface_.Pointer()->Get(); 231 return current_surface_.Pointer()->Get();
228 } 232 }
229 233
230 GLSurface::~GLSurface() { 234 GLSurface::~GLSurface() {
231 if (GetCurrent() == this) 235 if (GetCurrent() == this)
232 SetCurrent(NULL); 236 SetCurrent(NULL);
233 } 237 }
234 238
235 void GLSurface::SetCurrent(GLSurface* surface) { 239 void GLSurface::SetCurrent(GLSurface* surface) {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 } 384 }
381 385
382 bool GLSurfaceAdapter::IsSurfaceless() const { 386 bool GLSurfaceAdapter::IsSurfaceless() const {
383 return surface_->IsSurfaceless(); 387 return surface_->IsSurfaceless();
384 } 388 }
385 389
386 bool GLSurfaceAdapter::FlipsVertically() const { 390 bool GLSurfaceAdapter::FlipsVertically() const {
387 return surface_->FlipsVertically(); 391 return surface_->FlipsVertically();
388 } 392 }
389 393
394 bool GLSurfaceAdapter::BuffersFlipped() const {
395 return surface_->BuffersFlipped();
396 }
397
390 GLSurfaceAdapter::~GLSurfaceAdapter() {} 398 GLSurfaceAdapter::~GLSurfaceAdapter() {}
391 399
392 } // namespace gfx 400 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698