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

Side by Side Diff: cc/test/test_delegating_output_surface.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/test/fake_output_surface.cc ('k') | cc/test/test_delegating_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TEST_TEST_DELEGATING_OUTPUT_SURFACE_H_ 5 #ifndef CC_TEST_TEST_DELEGATING_OUTPUT_SURFACE_H_
6 #define CC_TEST_TEST_DELEGATING_OUTPUT_SURFACE_H_ 6 #define CC_TEST_TEST_DELEGATING_OUTPUT_SURFACE_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "cc/output/output_surface.h" 9 #include "cc/output/output_surface.h"
10 #include "cc/output/renderer_settings.h" 10 #include "cc/output/renderer_settings.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void ForceReclaimResources() override; 67 void ForceReclaimResources() override;
68 void BindFramebuffer() override; 68 void BindFramebuffer() override;
69 uint32_t GetFramebufferCopyTextureFormat() override; 69 uint32_t GetFramebufferCopyTextureFormat() override;
70 70
71 // SurfaceFactoryClient implementation. 71 // SurfaceFactoryClient implementation.
72 void ReturnResources(const ReturnedResourceArray& resources) override; 72 void ReturnResources(const ReturnedResourceArray& resources) override;
73 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; 73 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override;
74 74
75 // DisplayClient implementation. 75 // DisplayClient implementation.
76 void DisplayOutputSurfaceLost() override; 76 void DisplayOutputSurfaceLost() override;
77 void DisplaySetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
78 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 77 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
79 const RenderPassList& render_passes) override; 78 const RenderPassList& render_passes) override;
80 void DisplayDidDrawAndSwap() override; 79 void DisplayDidDrawAndSwap() override;
81 80
82 private: 81 private:
83 void DidDrawCallback(bool synchronous); 82 void DidDrawCallback(bool synchronous);
84 83
85 // TODO(danakj): These don't need to be stored in unique_ptrs when 84 // TODO(danakj): These don't need to be stored in unique_ptrs when
86 // OutputSurface is owned/destroyed on the compositor thread. 85 // OutputSurface is owned/destroyed on the compositor thread.
87 std::unique_ptr<SurfaceManager> surface_manager_; 86 std::unique_ptr<SurfaceManager> surface_manager_;
(...skipping 11 matching lines...) Expand all
99 gfx::Size enlarge_pass_texture_amount_; 98 gfx::Size enlarge_pass_texture_amount_;
100 99
101 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_; 100 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_;
102 101
103 base::WeakPtrFactory<TestDelegatingOutputSurface> weak_ptrs_; 102 base::WeakPtrFactory<TestDelegatingOutputSurface> weak_ptrs_;
104 }; 103 };
105 104
106 } // namespace cc 105 } // namespace cc
107 106
108 #endif // CC_TEST_TEST_DELEGATING_OUTPUT_SURFACE_H_ 107 #endif // CC_TEST_TEST_DELEGATING_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.cc ('k') | cc/test/test_delegating_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698