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

Unified Diff: cc/output/overlay_strategy_underlay_cast.h

Issue 2693023002: Use SwapBuffersWithBounds on Chromecast (Closed)
Patch Set: danakj nits 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
« no previous file with comments | « cc/output/overlay_strategy_underlay.cc ('k') | cc/output/overlay_strategy_underlay_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_underlay_cast.h
diff --git a/cc/output/overlay_strategy_underlay_cast.h b/cc/output/overlay_strategy_underlay_cast.h
new file mode 100644
index 0000000000000000000000000000000000000000..5266bb3d8097bec295ea76ed86db552aebf19570
--- /dev/null
+++ b/cc/output/overlay_strategy_underlay_cast.h
@@ -0,0 +1,33 @@
+// Copyright 2017 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_UNDERLAY_CAST_H_
+#define CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_CAST_H_
+
+#include "base/macros.h"
+#include "cc/output/overlay_strategy_underlay.h"
+
+namespace cc {
+
+class OverlayCandidateValidator;
+
+// Similar to underlay strategy plus Cast-specific handling of content bounds.
+class CC_EXPORT OverlayStrategyUnderlayCast : public OverlayStrategyUnderlay {
+ public:
+ explicit OverlayStrategyUnderlayCast(
+ OverlayCandidateValidator* capability_checker);
+ ~OverlayStrategyUnderlayCast() override;
+
+ bool Attempt(ResourceProvider* resource_provider,
+ RenderPass* render_pass,
+ OverlayCandidateList* candidate_list,
+ std::vector<gfx::Rect>* content_bounds) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(OverlayStrategyUnderlayCast);
+};
+
+} // namespace cc
+
+#endif // CC_OUTPUT_OVERLAY_STRATEGY_UNDERLAY_CAST_H_
« no previous file with comments | « cc/output/overlay_strategy_underlay.cc ('k') | cc/output/overlay_strategy_underlay_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698