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

Side by Side Diff: content/renderer/android/synchronous_compositor_output_surface.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 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void Reshape(const gfx::Size& size, 84 void Reshape(const gfx::Size& size,
85 float scale_factor, 85 float scale_factor,
86 const gfx::ColorSpace& color_space, 86 const gfx::ColorSpace& color_space,
87 bool has_alpha) override; 87 bool has_alpha) override;
88 void SwapBuffers(cc::CompositorFrame frame) override; 88 void SwapBuffers(cc::CompositorFrame frame) override;
89 void Invalidate() override; 89 void Invalidate() override;
90 void BindFramebuffer() override; 90 void BindFramebuffer() override;
91 uint32_t GetFramebufferCopyTextureFormat() override; 91 uint32_t GetFramebufferCopyTextureFormat() override;
92 92
93 // Partial SynchronousCompositor API implementation. 93 // Partial SynchronousCompositor API implementation.
94 void DemandDrawHw(const gfx::Size& surface_size, 94 void DemandDrawHw(const gfx::Size& viewport_size,
95 const gfx::Transform& transform,
96 const gfx::Rect& viewport,
97 const gfx::Rect& clip,
98 const gfx::Rect& viewport_rect_for_tile_priority, 95 const gfx::Rect& viewport_rect_for_tile_priority,
99 const gfx::Transform& transform_for_tile_priority); 96 const gfx::Transform& transform_for_tile_priority);
100 void DemandDrawSw(SkCanvas* canvas); 97 void DemandDrawSw(SkCanvas* canvas);
101 98
102 // SurfaceFactoryClient implementation. 99 // SurfaceFactoryClient implementation.
103 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 100 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
104 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 101 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
105 102
106 private: 103 private:
107 class SoftwareOutputSurface; 104 class SoftwareOutputSurface;
108 105
109 void InvokeComposite(const gfx::Transform& transform, 106 void InvokeComposite(const gfx::Transform& transform,
110 const gfx::Rect& viewport, 107 const gfx::Rect& viewport);
111 const gfx::Rect& clip);
112 bool Send(IPC::Message* message); 108 bool Send(IPC::Message* message);
113 void DidActivatePendingTree(); 109 void DidActivatePendingTree();
114 void DeliverMessages(); 110 void DeliverMessages();
115 bool CalledOnValidThread() const; 111 bool CalledOnValidThread() const;
116 112
117 void CancelFallbackTick(); 113 void CancelFallbackTick();
118 void FallbackTickFired(); 114 void FallbackTickFired();
119 115
120 // IPC handlers. 116 // IPC handlers.
121 void SetMemoryPolicy(size_t bytes_limit); 117 void SetMemoryPolicy(size_t bytes_limit);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 SoftwareOutputSurface* software_output_surface_ = nullptr; 159 SoftwareOutputSurface* software_output_surface_ = nullptr;
164 160
165 base::ThreadChecker thread_checker_; 161 base::ThreadChecker thread_checker_;
166 162
167 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 163 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
168 }; 164 };
169 165
170 } // namespace content 166 } // namespace content
171 167
172 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 168 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698