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

Unified Diff: gpu/ipc/service/direct_composition_surface_win.h

Issue 2884843002: Slightly modify sizes of overlays that are larger than the monitor (Closed)
Patch Set: Created 3 years, 7 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: gpu/ipc/service/direct_composition_surface_win.h
diff --git a/gpu/ipc/service/direct_composition_surface_win.h b/gpu/ipc/service/direct_composition_surface_win.h
index 2402a993252872c71bfe22d7f6c514b1ffa39d47..6db44b7d0b1c272a8786c70a4cf283ed9a5801a1 100644
--- a/gpu/ipc/service/direct_composition_surface_win.h
+++ b/gpu/ipc/service/direct_composition_surface_win.h
@@ -11,6 +11,7 @@
#include "base/memory/weak_ptr.h"
#include "base/win/scoped_comptr.h"
+#include "gpu/config/gpu_driver_bug_workarounds.h"
#include "gpu/gpu_export.h"
#include "gpu/ipc/service/child_window_win.h"
#include "gpu/ipc/service/image_transport_surface_delegate.h"
@@ -74,6 +75,8 @@ class GPU_EXPORT DirectCompositionSurfaceWin : public gl::GLSurfaceEGL {
base::win::ScopedComPtr<IDXGISwapChain1> GetLayerSwapChainForTesting(
size_t index) const;
+ const GpuDriverBugWorkarounds& workarounds() const { return workarounds_; }
+
protected:
~DirectCompositionSurfaceWin() override;
@@ -87,6 +90,8 @@ class GPU_EXPORT DirectCompositionSurfaceWin : public gl::GLSurfaceEGL {
ChildWindowWin child_window_;
+ GpuDriverBugWorkarounds workarounds_;
+
HWND window_ = nullptr;
// This is a placeholder surface used when not rendering to the
// DirectComposition surface.

Powered by Google App Engine
This is Rietveld 408576698