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

Side by Side Diff: cc/output/dc_layer_overlay.h

Issue 2736643004: Add DCLayerOverlayProcessor and supporting DCLayer structures. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_OUTPUT_DC_LAYER_OVERLAY_H_
6 #define CC_OUTPUT_DC_LAYER_OVERLAY_H_
7
8 #include "cc/output/ca_layer_overlay.h"
9
10 namespace cc {
11
12 class DCLayerOverlayProcessor {
13 public:
14 enum DCLayerResult {
15 DC_LAYER_SUCCESS,
16 DC_LAYER_FAILED_QUAD_BLEND_MODE,
17 DC_LAYER_FAILED_TEXTURE_NOT_CANDIDATE,
18 DC_LAYER_FAILED_OCCLUDED,
19 DC_LAYER_FAILED_UNKNOWN
20 };
21
22 void Process(ResourceProvider* resource_provider,
23 const gfx::RectF& display_rect,
24 QuadList* quad_list,
25 gfx::Rect* overlay_damage_rect,
26 gfx::Rect* damage_rect,
27 CALayerOverlayList* ca_layer_overlays);
28 void ClearOverlayState() {
29 previous_frame_underlay_rect_ = gfx::Rect();
30 previous_occlusion_bounding_box_ = gfx::Rect();
31 }
32
33 private:
34 DCLayerResult FromDrawQuad(ResourceProvider* resource_provider,
35 const gfx::RectF& display_rect,
36 QuadList::ConstIterator quad_list_begin,
37 QuadList::ConstIterator quad,
38 CALayerOverlay* ca_layer_overlay);
39
40 gfx::Rect previous_frame_underlay_rect_;
41 gfx::Rect previous_occlusion_bounding_box_;
42 };
43
44 } // namespace cc
45
46 #endif // CC_OUTPUT_DC_LAYER_OVERLAY_H_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/output/dc_layer_overlay.cc » ('j') | cc/output/overlay_processor.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698