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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 15688002: Part 1/3 (compositor) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Android build Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/test_web_graphics_context_3d.cc ('k') | cc/trees/layer_tree_host_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 const LayerTreeSettings& settings() const { return settings_; } 176 const LayerTreeSettings& settings() const { return settings_; }
177 177
178 // Returns the currently visible viewport size in DIP. This value excludes 178 // Returns the currently visible viewport size in DIP. This value excludes
179 // the URL bar and non-overlay scrollbars. 179 // the URL bar and non-overlay scrollbars.
180 gfx::SizeF VisibleViewportSize() const; 180 gfx::SizeF VisibleViewportSize() const;
181 181
182 // RendererClient implementation 182 // RendererClient implementation
183 private: 183 private:
184 virtual gfx::Size DeviceViewportSize() const OVERRIDE; 184 virtual gfx::Size DeviceViewportSize() const OVERRIDE;
185 virtual float DeviceScaleFactor() const OVERRIDE;
185 virtual const LayerTreeSettings& Settings() const OVERRIDE; 186 virtual const LayerTreeSettings& Settings() const OVERRIDE;
186 public: 187 public:
187 virtual void DidLoseOutputSurface() OVERRIDE; 188 virtual void DidLoseOutputSurface() OVERRIDE;
188 virtual void OnSwapBuffersComplete() OVERRIDE; 189 virtual void OnSwapBuffersComplete() OVERRIDE;
189 virtual void SetFullRootLayerDamage() OVERRIDE; 190 virtual void SetFullRootLayerDamage() OVERRIDE;
190 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) 191 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy)
191 OVERRIDE; 192 OVERRIDE;
192 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) 193 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy)
193 OVERRIDE; 194 OVERRIDE;
194 virtual bool HasImplThread() const OVERRIDE; 195 virtual bool HasImplThread() const OVERRIDE;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 scoped_ptr<AnimationRegistrar> animation_registrar_; 505 scoped_ptr<AnimationRegistrar> animation_registrar_;
505 506
506 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 507 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
507 508
508 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 509 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
509 }; 510 };
510 511
511 } // namespace cc 512 } // namespace cc
512 513
513 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 514 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/test_web_graphics_context_3d.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698