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

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

Issue 2321883002: cc: Remove SetMemoryPolicy from OutputSurface and Display. (Closed)
Patch Set: nits Created 4 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/output_surface.cc ('k') | cc/surfaces/display.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_CLIENT_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 26 matching lines...) Expand all
37 // For the display compositor this is literally a notification that the swap 37 // For the display compositor this is literally a notification that the swap
38 // to the hardware is complete. 38 // to the hardware is complete.
39 virtual void DidSwapBuffersComplete() = 0; 39 virtual void DidSwapBuffersComplete() = 0;
40 virtual void DidReceiveTextureInUseResponses( 40 virtual void DidReceiveTextureInUseResponses(
41 const gpu::TextureInUseResponses& responses) = 0; 41 const gpu::TextureInUseResponses& responses) = 0;
42 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0; 42 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0;
43 virtual void DidLoseOutputSurface() = 0; 43 virtual void DidLoseOutputSurface() = 0;
44 virtual void SetExternalTilePriorityConstraints( 44 virtual void SetExternalTilePriorityConstraints(
45 const gfx::Rect& viewport_rect, 45 const gfx::Rect& viewport_rect,
46 const gfx::Transform& transform) = 0; 46 const gfx::Transform& transform) = 0;
47 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) = 0;
48 // If set, |callback| will be called subsequent to each new tree activation, 47 // If set, |callback| will be called subsequent to each new tree activation,
49 // regardless of the compositor visibility or damage. |callback| must remain 48 // regardless of the compositor visibility or damage. |callback| must remain
50 // valid for the lifetime of the OutputSurfaceClient or until unregisted -- 49 // valid for the lifetime of the OutputSurfaceClient or until unregisted --
51 // use SetTreeActivationCallback(base::Closure()) to unregister it. 50 // use SetTreeActivationCallback(base::Closure()) to unregister it.
52 virtual void SetTreeActivationCallback(const base::Closure& callback) = 0; 51 virtual void SetTreeActivationCallback(const base::Closure& callback) = 0;
53 // This allows the output surface to ask its client for a draw. 52 // This allows the output surface to ask its client for a draw.
54 virtual void OnDraw(const gfx::Transform& transform, 53 virtual void OnDraw(const gfx::Transform& transform,
55 const gfx::Rect& viewport, 54 const gfx::Rect& viewport,
56 bool resourceless_software_draw) = 0; 55 bool resourceless_software_draw) = 0;
56 // For SynchronousCompositor (WebView) to set how much memory the compositor
57 // can use without changing visibility.
58 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) = 0;
57 59
58 protected: 60 protected:
59 virtual ~OutputSurfaceClient() {} 61 virtual ~OutputSurfaceClient() {}
60 }; 62 };
61 63
62 } // namespace cc 64 } // namespace cc
63 65
64 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 66 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698