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

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

Issue 2933453002: Always use DirectCompositionSurfaceWin when using DirectComposition (Closed)
Patch Set: post-review fixes Created 3 years, 5 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"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 176
177 bool GLSurface::BuffersFlipped() const { 177 bool GLSurface::BuffersFlipped() const {
178 return false; 178 return false;
179 } 179 }
180 180
181 bool GLSurface::SupportsDCLayers() const { 181 bool GLSurface::SupportsDCLayers() const {
182 return false; 182 return false;
183 } 183 }
184 184
185 bool GLSurface::UseOverlaysForVideo() const {
186 return false;
187 }
188
185 bool GLSurface::SetDrawRectangle(const gfx::Rect& rect) { 189 bool GLSurface::SetDrawRectangle(const gfx::Rect& rect) {
186 return false; 190 return false;
187 } 191 }
188 192
189 gfx::Vector2d GLSurface::GetDrawOffset() const { 193 gfx::Vector2d GLSurface::GetDrawOffset() const {
190 return gfx::Vector2d(); 194 return gfx::Vector2d();
191 } 195 }
192 196
193 void GLSurface::WaitForSnapshotRendering() { 197 void GLSurface::WaitForSnapshotRendering() {
194 // By default, just executing the SwapBuffers is normally enough. 198 // By default, just executing the SwapBuffers is normally enough.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 } 388 }
385 389
386 bool GLSurfaceAdapter::BuffersFlipped() const { 390 bool GLSurfaceAdapter::BuffersFlipped() const {
387 return surface_->BuffersFlipped(); 391 return surface_->BuffersFlipped();
388 } 392 }
389 393
390 bool GLSurfaceAdapter::SupportsDCLayers() const { 394 bool GLSurfaceAdapter::SupportsDCLayers() const {
391 return surface_->SupportsDCLayers(); 395 return surface_->SupportsDCLayers();
392 } 396 }
393 397
398 bool GLSurfaceAdapter::UseOverlaysForVideo() const {
399 return surface_->UseOverlaysForVideo();
400 }
401
394 bool GLSurfaceAdapter::SetDrawRectangle(const gfx::Rect& rect) { 402 bool GLSurfaceAdapter::SetDrawRectangle(const gfx::Rect& rect) {
395 return surface_->SetDrawRectangle(rect); 403 return surface_->SetDrawRectangle(rect);
396 } 404 }
397 405
398 gfx::Vector2d GLSurfaceAdapter::GetDrawOffset() const { 406 gfx::Vector2d GLSurfaceAdapter::GetDrawOffset() const {
399 return surface_->GetDrawOffset(); 407 return surface_->GetDrawOffset();
400 } 408 }
401 409
402 void GLSurfaceAdapter::WaitForSnapshotRendering() { 410 void GLSurfaceAdapter::WaitForSnapshotRendering() {
403 surface_->WaitForSnapshotRendering(); 411 surface_->WaitForSnapshotRendering();
(...skipping 15 matching lines...) Expand all
419 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) { 427 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) {
420 return InitializeGLSurfaceWithFormat(surface, GLSurfaceFormat()); 428 return InitializeGLSurfaceWithFormat(surface, GLSurfaceFormat());
421 } 429 }
422 430
423 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; 431 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default;
424 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = 432 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) =
425 default; 433 default;
426 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; 434 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default;
427 435
428 } // namespace gl 436 } // 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