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

Unified Diff: ui/gl/gl_surface.cc

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 10 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
Index: ui/gl/gl_surface.cc
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index 0c71b3b026b3450fd77fe4a644d2fb8c87ed73fa..c6b9e39ba33417aebe0e6e6dd4776598c898da1e 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -173,6 +173,14 @@ bool GLSurface::BuffersFlipped() const {
return false;
}
+bool GLSurface::SupportsSetDrawRectangle() const {
+ return false;
+}
+
+bool GLSurface::SetDrawRectangle(const gfx::Rect& rect) {
+ return false;
+}
+
GLSurface* GLSurface::GetCurrent() {
return current_surface_.Pointer()->Get();
}
@@ -354,6 +362,14 @@ bool GLSurfaceAdapter::BuffersFlipped() const {
return surface_->BuffersFlipped();
}
+bool GLSurfaceAdapter::SupportsSetDrawRectangle() const {
+ return surface_->SupportsSetDrawRectangle();
+}
+
+bool GLSurfaceAdapter::SetDrawRectangle(const gfx::Rect& rect) {
+ return surface_->SetDrawRectangle(rect);
+}
+
void GLSurfaceAdapter::OnSetSwapInterval(int interval) {
surface_->OnSetSwapInterval(interval);
}
« content/browser/compositor/browser_compositor_output_surface.h ('K') | « ui/gl/gl_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698