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

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

Issue 23961003: cc: Remove most methods from RendererClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rendererclient: rebase 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/pixel_test_output_surface.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 <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // invariant relative to page scale). 195 // invariant relative to page scale).
196 gfx::SizeF UnscaledScrollableViewportSize() const; 196 gfx::SizeF UnscaledScrollableViewportSize() const;
197 197
198 // RendererClient implementation 198 // RendererClient implementation
199 199
200 // Viewport rectangle and clip in nonflipped window space. These rects 200 // Viewport rectangle and clip in nonflipped window space. These rects
201 // should only be used by Renderer subclasses to populate glViewport/glClip 201 // should only be used by Renderer subclasses to populate glViewport/glClip
202 // and their software-mode equivalents. 202 // and their software-mode equivalents.
203 virtual gfx::Rect DeviceViewport() const OVERRIDE; 203 virtual gfx::Rect DeviceViewport() const OVERRIDE;
204 virtual gfx::Rect DeviceClip() const OVERRIDE; 204 virtual gfx::Rect DeviceClip() const OVERRIDE;
205 private:
206 virtual float DeviceScaleFactor() const OVERRIDE;
207 virtual const LayerTreeSettings& Settings() const OVERRIDE;
208 public:
209 virtual void SetFullRootLayerDamage() OVERRIDE; 205 virtual void SetFullRootLayerDamage() OVERRIDE;
210 virtual bool HasImplThread() const OVERRIDE;
211 virtual bool ShouldClearRootRenderPass() const OVERRIDE;
212 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const OVERRIDE; 206 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const OVERRIDE;
213 virtual bool AllowPartialSwap() const OVERRIDE;
214 virtual bool ExternalStencilTestEnabled() const OVERRIDE;
215 207
216 // TileManagerClient implementation. 208 // TileManagerClient implementation.
217 virtual void NotifyReadyToActivate() OVERRIDE; 209 virtual void NotifyReadyToActivate() OVERRIDE;
218 210
219 // OutputSurfaceClient implementation. 211 // OutputSurfaceClient implementation.
220 virtual bool DeferredInitialize( 212 virtual bool DeferredInitialize(
221 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; 213 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE;
222 virtual void ReleaseGL() OVERRIDE; 214 virtual void ReleaseGL() OVERRIDE;
223 virtual void SetNeedsRedrawRect(gfx::Rect rect) OVERRIDE; 215 virtual void SetNeedsRedrawRect(gfx::Rect rect) OVERRIDE;
224 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; 216 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
225 virtual void SetExternalDrawConstraints( 217 virtual void SetExternalDrawConstraints(
226 const gfx::Transform& transform, 218 const gfx::Transform& transform,
227 gfx::Rect viewport, 219 gfx::Rect viewport,
228 gfx::Rect clip, 220 gfx::Rect clip,
229 bool valid_for_tile_management) OVERRIDE; 221 bool valid_for_tile_management) OVERRIDE;
230 virtual void SetExternalStencilTest(bool enabled) OVERRIDE;
231 virtual void DidLoseOutputSurface() OVERRIDE; 222 virtual void DidLoseOutputSurface() OVERRIDE;
232 virtual void OnSwapBuffersComplete(const CompositorFrameAck* ack) OVERRIDE; 223 virtual void OnSwapBuffersComplete(const CompositorFrameAck* ack) OVERRIDE;
233 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE; 224 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE;
234 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE; 225 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE;
235 virtual void SetTreeActivationCallback(const base::Closure& callback) 226 virtual void SetTreeActivationCallback(const base::Closure& callback)
236 OVERRIDE; 227 OVERRIDE;
237 228
238 // Called from LayerTreeImpl. 229 // Called from LayerTreeImpl.
239 void OnCanDrawStateChangedForTree(); 230 void OnCanDrawStateChangedForTree();
240 231
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 594
604 // Optional callback to notify of new tree activations. 595 // Optional callback to notify of new tree activations.
605 base::Closure tree_activation_callback_; 596 base::Closure tree_activation_callback_;
606 597
607 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 598 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
608 }; 599 };
609 600
610 } // namespace cc 601 } // namespace cc
611 602
612 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 603 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/pixel_test_output_surface.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698