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

Unified Diff: cc/surfaces/surface_aggregator.h

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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/scheduler/scheduler_unittest.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator.h
diff --git a/cc/surfaces/surface_aggregator.h b/cc/surfaces/surface_aggregator.h
index 9cb0578819dd5a31b04a75f392d0e184f4377812..8ae3b04cad7757135a9ab2cc526dd5cf115c0c43 100644
--- a/cc/surfaces/surface_aggregator.h
+++ b/cc/surfaces/surface_aggregator.h
@@ -38,19 +38,34 @@ class CC_SURFACES_EXPORT SurfaceAggregator {
}
private:
+ struct ClipData {
+ ClipData() : is_clipped(false) {}
+ ClipData(bool is_clipped, const gfx::Rect& rect)
+ : is_clipped(is_clipped), rect(rect) {}
+
+ bool is_clipped;
+ gfx::Rect rect;
+ };
+
+ ClipData CalculateClipRect(const ClipData& surface_clip,
+ const ClipData& quad_clip,
+ const gfx::Transform& content_to_target_transform);
+
RenderPassId RemapPassId(RenderPassId surface_local_pass_id,
SurfaceId surface_id);
void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad,
- float opacity,
+ const gfx::Transform& content_to_target_transform,
+ const ClipData& clip_rect,
RenderPass* dest_pass);
void CopySharedQuadState(const SharedQuadState* source_sqs,
const gfx::Transform& content_to_target_transform,
+ const ClipData& clip_rect,
RenderPass* dest_render_pass);
void CopyQuadsToPass(const QuadList& source_quad_list,
const SharedQuadStateList& source_shared_quad_state_list,
const gfx::Transform& content_to_target_transform,
- float opacity,
+ const ClipData& clip_rect,
RenderPass* dest_pass,
SurfaceId surface_id);
void CopyPasses(const DelegatedFrameData* frame_data, Surface* surface);
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698