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

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

Issue 23171014: Fix UpdateTilePriorities viewport in Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to 221292 Created 7 years, 3 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
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_OUTPUT_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // Forwarded to OutputSurfaceClient but threaded through OutputSurface 162 // Forwarded to OutputSurfaceClient but threaded through OutputSurface
163 // first so OutputSurface has a chance to update the FrameRateController 163 // first so OutputSurface has a chance to update the FrameRateController
164 void SetNeedsRedrawRect(gfx::Rect damage_rect); 164 void SetNeedsRedrawRect(gfx::Rect damage_rect);
165 void BeginFrame(const BeginFrameArgs& args); 165 void BeginFrame(const BeginFrameArgs& args);
166 void DidSwapBuffers(); 166 void DidSwapBuffers();
167 void OnSwapBuffersComplete(const CompositorFrameAck* ack); 167 void OnSwapBuffersComplete(const CompositorFrameAck* ack);
168 void DidLoseOutputSurface(); 168 void DidLoseOutputSurface();
169 void SetExternalStencilTest(bool enabled); 169 void SetExternalStencilTest(bool enabled);
170 void SetExternalDrawConstraints(const gfx::Transform& transform, 170 void SetExternalDrawConstraints(const gfx::Transform& transform,
171 gfx::Rect viewport); 171 gfx::Rect viewport,
172 gfx::Rect clip,
173 bool valid_for_tile_management);
172 174
173 // virtual for testing. 175 // virtual for testing.
174 virtual base::TimeDelta AlternateRetroactiveBeginFramePeriod(); 176 virtual base::TimeDelta AlternateRetroactiveBeginFramePeriod();
175 virtual void PostCheckForRetroactiveBeginFrame(); 177 virtual void PostCheckForRetroactiveBeginFrame();
176 void CheckForRetroactiveBeginFrame(); 178 void CheckForRetroactiveBeginFrame();
177 179
178 private: 180 private:
179 OutputSurfaceClient* client_; 181 OutputSurfaceClient* client_;
180 friend class OutputSurfaceCallbacks; 182 friend class OutputSurfaceCallbacks;
181 183
182 void SetUpContext3d(); 184 void SetUpContext3d();
183 void ResetContext3d(); 185 void ResetContext3d();
184 void SetMemoryPolicy(const ManagedMemoryPolicy& policy, 186 void SetMemoryPolicy(const ManagedMemoryPolicy& policy,
185 bool discard_backbuffer_when_not_visible); 187 bool discard_backbuffer_when_not_visible);
186 188
187 // This stores a BeginFrame that we couldn't process immediately, but might 189 // This stores a BeginFrame that we couldn't process immediately, but might
188 // process retroactively in the near future. 190 // process retroactively in the near future.
189 BeginFrameArgs skipped_begin_frame_args_; 191 BeginFrameArgs skipped_begin_frame_args_;
190 192
191 // check_for_retroactive_begin_frame_pending_ is used to avoid posting 193 // check_for_retroactive_begin_frame_pending_ is used to avoid posting
192 // redundant checks for a retroactive BeginFrame. 194 // redundant checks for a retroactive BeginFrame.
193 bool check_for_retroactive_begin_frame_pending_; 195 bool check_for_retroactive_begin_frame_pending_;
194 196
195 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 197 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
196 }; 198 };
197 199
198 } // namespace cc 200 } // namespace cc
199 201
200 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 202 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698