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

Unified Diff: cc/output/overlay_strategy_fullscreen.h

Issue 2168693002: cc: Add OverlayStrategyFullscreen strategy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set deps. Don't enable strategy by default. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/overlay_candidate.cc ('k') | cc/output/overlay_strategy_fullscreen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_fullscreen.h
diff --git a/cc/output/overlay_strategy_fullscreen.h b/cc/output/overlay_strategy_fullscreen.h
new file mode 100644
index 0000000000000000000000000000000000000000..4100d253ba57ff84642d4163a5651bcd13794bbc
--- /dev/null
+++ b/cc/output/overlay_strategy_fullscreen.h
@@ -0,0 +1,32 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_
+#define CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_
+
+#include "base/macros.h"
+#include "cc/output/overlay_processor.h"
+
+namespace cc {
+
+class OverlayCandidateValidator;
+// Overlay strategy to promote a single full screen quad to an overlay.
+// The promoted quad should have all the property of the framebuffer and it
+// should be possible to use it as such.
+class CC_EXPORT OverlayStrategyFullscreen : public OverlayProcessor::Strategy {
+ public:
+ OverlayStrategyFullscreen();
+ ~OverlayStrategyFullscreen() override;
+
+ bool Attempt(ResourceProvider* resource_provider,
+ RenderPass* render_pass,
+ OverlayCandidateList* candidate_list) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(OverlayStrategyFullscreen);
+};
+
+} // namespace cc
+
+#endif // CC_OUTPUT_OVERLAY_STRATEGY_FULLSCREEN_H_
« no previous file with comments | « cc/output/overlay_candidate.cc ('k') | cc/output/overlay_strategy_fullscreen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698