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

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

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 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 <deque> 8 #include <deque>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 gfx::Size surface_size_; 156 gfx::Size surface_size_;
157 float device_scale_factor_; 157 float device_scale_factor_;
158 158
159 void CommitVSyncParameters(base::TimeTicks timebase, 159 void CommitVSyncParameters(base::TimeTicks timebase,
160 base::TimeDelta interval); 160 base::TimeDelta interval);
161 161
162 void SetNeedsRedrawRect(const gfx::Rect& damage_rect); 162 void SetNeedsRedrawRect(const gfx::Rect& damage_rect);
163 void ReclaimResources(const CompositorFrameAck* ack); 163 void ReclaimResources(const CompositorFrameAck* ack);
164 void DidLoseOutputSurface(); 164 void DidLoseOutputSurface();
165 void SetExternalStencilTest(bool enabled); 165 void SetExternalStencilTest(bool enabled);
166 void SetExternalDrawConstraints(const gfx::Transform& transform, 166 void SetExternalDrawConstraints(
167 const gfx::Rect& viewport, 167 const gfx::Transform& transform,
168 const gfx::Rect& clip, 168 const gfx::Rect& viewport,
169 bool resourceless_software_draw); 169 const gfx::Rect& clip,
170 const gfx::Rect& external_tiling_rect,
enne (OOO) 2014/07/25 19:16:55 In general this patch looks fine to me, but I stil
hush (inactive) 2014/07/29 00:55:57 This function name actually suggests all parameter
enne (OOO) 2014/07/29 18:39:28 "_for_tile_priority" is definitely better than "ti
171 const gfx::Transform& external_tiling_transform,
172 bool resourceless_software_draw);
170 173
171 private: 174 private:
172 void SetUpContext3d(); 175 void SetUpContext3d();
173 void ResetContext3d(); 176 void ResetContext3d();
174 void SetMemoryPolicy(const ManagedMemoryPolicy& policy); 177 void SetMemoryPolicy(const ManagedMemoryPolicy& policy);
175 178
176 bool external_stencil_test_enabled_; 179 bool external_stencil_test_enabled_;
177 180
178 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 181 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
179 182
180 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 183 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
181 }; 184 };
182 185
183 } // namespace cc 186 } // namespace cc
184 187
185 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 188 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698