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

Unified Diff: cc/output/direct_renderer.h

Issue 2543473004: cc: Move filters from RenderPassDrawQuad to RenderPass (Closed)
Patch Set: Rebase again Created 4 years 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/ca_layer_overlay.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.h
diff --git a/cc/output/direct_renderer.h b/cc/output/direct_renderer.h
index 2bf0c9c39ff8f598259d2514f6f300c064f47322..23314b43e0b8c83c97fff0eaebf426fde4a09f38 100644
--- a/cc/output/direct_renderer.h
+++ b/cc/output/direct_renderer.h
@@ -7,11 +7,13 @@
#include <memory>
#include <unordered_map>
+#include <vector>
#include "base/callback.h"
#include "base/macros.h"
#include "cc/base/cc_export.h"
#include "cc/output/ca_layer_overlay.h"
+#include "cc/output/filter_operations.h"
#include "cc/output/overlay_processor.h"
#include "cc/quads/tile_draw_quad.h"
#include "cc/resources/resource_provider.h"
@@ -137,6 +139,9 @@ class CC_EXPORT DirectRenderer {
const gfx::Rect& render_pass_scissor,
bool use_render_pass_scissor);
+ const FilterOperations* FiltersForPass(int render_pass_id) const;
+ const FilterOperations* BackgroundFiltersForPass(int render_pass_id) const;
+
// Private interface implemented by subclasses for use by DirectRenderer.
virtual bool CanPartialSwap() = 0;
virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) = 0;
@@ -189,6 +194,9 @@ class CC_EXPORT DirectRenderer {
render_pass_textures_;
std::unordered_map<int, TileDrawQuad> render_pass_bypass_quads_;
+ RenderPassFilterList render_pass_filters_;
+ RenderPassFilterList render_pass_background_filters_;
+
bool visible_ = false;
// For use in coordinate conversion, this stores the output rect, viewport
« no previous file with comments | « cc/output/ca_layer_overlay.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698