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

Side by Side Diff: content/browser/android/synchronous_compositor_host.h

Issue 2188943002: Remove OutputSurfaceClient external clip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: viewport -> viewport_size 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class SynchronousCompositorHost : public SynchronousCompositor { 43 class SynchronousCompositorHost : public SynchronousCompositor {
44 public: 44 public:
45 static std::unique_ptr<SynchronousCompositorHost> Create( 45 static std::unique_ptr<SynchronousCompositorHost> Create(
46 RenderWidgetHostViewAndroid* rwhva, 46 RenderWidgetHostViewAndroid* rwhva,
47 WebContents* web_contents); 47 WebContents* web_contents);
48 48
49 ~SynchronousCompositorHost() override; 49 ~SynchronousCompositorHost() override;
50 50
51 // SynchronousCompositor overrides. 51 // SynchronousCompositor overrides.
52 SynchronousCompositor::Frame DemandDrawHw( 52 SynchronousCompositor::Frame DemandDrawHw(
53 const gfx::Size& surface_size, 53 const gfx::Size& viewport_size,
54 const gfx::Transform& transform,
55 const gfx::Rect& viewport,
56 const gfx::Rect& clip,
57 const gfx::Rect& viewport_rect_for_tile_priority, 54 const gfx::Rect& viewport_rect_for_tile_priority,
58 const gfx::Transform& transform_for_tile_priority) override; 55 const gfx::Transform& transform_for_tile_priority) override;
59 bool DemandDrawSw(SkCanvas* canvas) override; 56 bool DemandDrawSw(SkCanvas* canvas) override;
60 void ReturnResources(uint32_t output_surface_id, 57 void ReturnResources(uint32_t output_surface_id,
61 const cc::ReturnedResourceArray& resources) override; 58 const cc::ReturnedResourceArray& resources) override;
62 void SetMemoryPolicy(size_t bytes_limit) override; 59 void SetMemoryPolicy(size_t bytes_limit) override;
63 void DidChangeRootLayerScrollOffset( 60 void DidChangeRootLayerScrollOffset(
64 const gfx::ScrollOffset& root_offset) override; 61 const gfx::ScrollOffset& root_offset) override;
65 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override; 62 void SynchronouslyZoomBy(float zoom_delta, const gfx::Point& anchor) override;
66 void OnComputeScroll(base::TimeTicks animation_time) override; 63 void OnComputeScroll(base::TimeTicks animation_time) override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool need_animate_scroll_; 101 bool need_animate_scroll_;
105 uint32_t need_invalidate_count_; 102 uint32_t need_invalidate_count_;
106 uint32_t did_activate_pending_tree_count_; 103 uint32_t did_activate_pending_tree_count_;
107 104
108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); 105 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost);
109 }; 106 };
110 107
111 } // namespace content 108 } // namespace content
112 109
113 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 110 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698