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

Side by Side Diff: content/public/browser/android/synchronous_compositor.h

Issue 2188943002: Remove OutputSurfaceClient external clip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittests compile Created 4 years, 4 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 uint32_t output_surface_id; 55 uint32_t output_surface_id;
56 std::unique_ptr<cc::CompositorFrame> frame; 56 std::unique_ptr<cc::CompositorFrame> frame;
57 57
58 private: 58 private:
59 DISALLOW_COPY_AND_ASSIGN(Frame); 59 DISALLOW_COPY_AND_ASSIGN(Frame);
60 }; 60 };
61 61
62 // "On demand" hardware draw. The content is first clipped to |damage_area|, 62 // "On demand" hardware draw. The content is first clipped to |damage_area|,
63 // then transformed through |transform|, and finally clipped to |view_size|. 63 // then transformed through |transform|, and finally clipped to |view_size|.
64 virtual Frame DemandDrawHw( 64 virtual Frame DemandDrawHw(
65 const gfx::Size& surface_size,
66 const gfx::Transform& transform,
67 const gfx::Rect& viewport, 65 const gfx::Rect& viewport,
68 const gfx::Rect& clip,
69 const gfx::Rect& viewport_rect_for_tile_priority, 66 const gfx::Rect& viewport_rect_for_tile_priority,
70 const gfx::Transform& transform_for_tile_priority) = 0; 67 const gfx::Transform& transform_for_tile_priority) = 0;
71 68
72 // For delegated rendering, return resources from parent compositor to this. 69 // For delegated rendering, return resources from parent compositor to this.
73 // Note that all resources must be returned before ReleaseHwDraw. 70 // Note that all resources must be returned before ReleaseHwDraw.
74 virtual void ReturnResources(uint32_t output_surface_id, 71 virtual void ReturnResources(uint32_t output_surface_id,
75 const cc::ReturnedResourceArray& resources) = 0; 72 const cc::ReturnedResourceArray& resources) = 0;
76 73
77 // "On demand" SW draw, into the supplied canvas (observing the transform 74 // "On demand" SW draw, into the supplied canvas (observing the transform
78 // and clip set there-in). 75 // and clip set there-in).
(...skipping 16 matching lines...) Expand all
95 // and if any input animation is active, it should tick now. 92 // and if any input animation is active, it should tick now.
96 virtual void OnComputeScroll(base::TimeTicks animation_time) = 0; 93 virtual void OnComputeScroll(base::TimeTicks animation_time) = 0;
97 94
98 protected: 95 protected:
99 virtual ~SynchronousCompositor() {} 96 virtual ~SynchronousCompositor() {}
100 }; 97 };
101 98
102 } // namespace content 99 } // namespace content
103 100
104 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_ 101 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698