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

Unified Diff: cc/output/overlay_candidate.h

Issue 1387283002: cc: Remove redundant is_overlay arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo changes on overlay_strategy_single_on_top.cc Created 5 years, 2 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/gl_renderer_unittest.cc ('k') | cc/output/overlay_candidate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_candidate.h
diff --git a/cc/output/overlay_candidate.h b/cc/output/overlay_candidate.h
index 2584d9b0122b548b2554793de4eec2a7766c5ac2..aa42ba11f518b9a7f2b2e401f06d0c1cb7b766ce 100644
--- a/cc/output/overlay_candidate.h
+++ b/cc/output/overlay_candidate.h
@@ -25,12 +25,15 @@ class DrawQuad;
class IOSurfaceDrawQuad;
class StreamVideoDrawQuad;
class TextureDrawQuad;
+class ResourceProvider;
class CC_EXPORT OverlayCandidate {
public:
// Returns true and fills in |candidate| if |draw_quad| is of a known quad
// type and contains an overlayable resource.
- static bool FromDrawQuad(const DrawQuad* quad, OverlayCandidate* candidate);
+ static bool FromDrawQuad(ResourceProvider* resource_provider,
+ const DrawQuad* quad,
+ OverlayCandidate* candidate);
// Returns true if |quad| will not block quads underneath from becoming
// an overlay.
static bool IsInvisibleQuad(const DrawQuad* quad);
@@ -69,11 +72,14 @@ class CC_EXPORT OverlayCandidate {
bool overlay_handled;
private:
- static bool FromTextureQuad(const TextureDrawQuad* quad,
+ static bool FromTextureQuad(ResourceProvider* resource_provider,
+ const TextureDrawQuad* quad,
OverlayCandidate* candidate);
- static bool FromStreamVideoQuad(const StreamVideoDrawQuad* quad,
+ static bool FromStreamVideoQuad(ResourceProvider* resource_provider,
+ const StreamVideoDrawQuad* quad,
OverlayCandidate* candidate);
- static bool FromIOSurfaceQuad(const IOSurfaceDrawQuad* quad,
+ static bool FromIOSurfaceQuad(ResourceProvider* resource_provider,
+ const IOSurfaceDrawQuad* quad,
OverlayCandidate* candidate);
};
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/overlay_candidate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698