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

Unified Diff: content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.h

Issue 1157793004: ozone: Add overlay candidate implementation that queries support via IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix leak, other comments Created 5 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: content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.h
diff --git a/content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.h b/content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.h
index 744d864d82fe789a55d5292358a7d90838f96b3a..304daa4c14682f48e2935cdec4ae69b9d0b826c3 100644
--- a/content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.h
+++ b/content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_H_
#define CONTENT_BROWSER_COMPOSITOR_OVERLAY_CANDIDATE_VALIDATOR_OZONE_H_
+#include "base/memory/scoped_ptr.h"
#include "content/browser/compositor/browser_compositor_overlay_candidate_validator.h"
#include "ui/gfx/native_widget_types.h"
@@ -19,7 +20,7 @@ class CONTENT_EXPORT BrowserCompositorOverlayCandidateValidatorOzone
public:
BrowserCompositorOverlayCandidateValidatorOzone(
gfx::AcceleratedWidget widget,
- ui::OverlayCandidatesOzone* overlay_candidates);
+ scoped_ptr<ui::OverlayCandidatesOzone> overlay_candidates);
~BrowserCompositorOverlayCandidateValidatorOzone() override;
// cc::OverlayCandidateValidator implementation.
@@ -30,7 +31,7 @@ class CONTENT_EXPORT BrowserCompositorOverlayCandidateValidatorOzone
private:
gfx::AcceleratedWidget widget_;
- ui::OverlayCandidatesOzone* overlay_candidates_;
+ scoped_ptr<ui::OverlayCandidatesOzone> overlay_candidates_;
bool software_mirror_active_;
DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOverlayCandidateValidatorOzone);

Powered by Google App Engine
This is Rietveld 408576698