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

Unified Diff: ui/gl/gl_surface.cc

Issue 2743663006: Allow switching DirectCompositionSurfaceWin between drawing modes. (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface.cc
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index 85c3234247416546cf98220dd98e271d14b22d55..edb234678ebe021b152cc881ef11b8e4c7f035a1 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -161,6 +161,11 @@ bool GLSurface::ScheduleDCLayer(const ui::DCRendererLayerParams& params) {
return false;
}
+bool GLSurface::SetEnableDCLayers(bool enable) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
bool GLSurface::IsSurfaceless() const {
return false;
}
@@ -173,7 +178,7 @@ bool GLSurface::BuffersFlipped() const {
return false;
}
-bool GLSurface::SupportsSetDrawRectangle() const {
+bool GLSurface::SupportsDCLayers() const {
return false;
}
@@ -359,6 +364,10 @@ bool GLSurfaceAdapter::ScheduleDCLayer(
return surface_->ScheduleDCLayer(params);
}
+bool GLSurfaceAdapter::SetEnableDCLayers(bool enable) {
+ return surface_->SetEnableDCLayers(enable);
+}
+
bool GLSurfaceAdapter::IsSurfaceless() const {
return surface_->IsSurfaceless();
}
@@ -371,8 +380,8 @@ bool GLSurfaceAdapter::BuffersFlipped() const {
return surface_->BuffersFlipped();
}
-bool GLSurfaceAdapter::SupportsSetDrawRectangle() const {
- return surface_->SupportsSetDrawRectangle();
+bool GLSurfaceAdapter::SupportsDCLayers() const {
+ return surface_->SupportsDCLayers();
}
bool GLSurfaceAdapter::SetDrawRectangle(const gfx::Rect& rect) {
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698