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

Side by Side Diff: cc/test/test_delegating_output_surface.h

Issue 2183333003: cc: Post the missed BeginFrame to a new stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: post-swapcomplete: comment Created 4 years, 4 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/surfaces/display_scheduler.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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // SurfaceFactoryClient implementation. 46 // SurfaceFactoryClient implementation.
47 void ReturnResources(const ReturnedResourceArray& resources) override; 47 void ReturnResources(const ReturnedResourceArray& resources) override;
48 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; 48 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override;
49 49
50 // DisplayClient implementation. 50 // DisplayClient implementation.
51 void DisplayOutputSurfaceLost() override; 51 void DisplayOutputSurfaceLost() override;
52 void DisplaySetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 52 void DisplaySetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
53 53
54 private: 54 private:
55 void DrawCallback(); 55 void DrawCallback(bool synchronous);
56 56
57 // TODO(danakj): These don't to be stored in unique_ptrs when OutputSurface 57 // TODO(danakj): These don't to be stored in unique_ptrs when OutputSurface
58 // is owned/destroyed on the compositor thread. 58 // is owned/destroyed on the compositor thread.
59 std::unique_ptr<SurfaceManager> surface_manager_; 59 std::unique_ptr<SurfaceManager> surface_manager_;
60 std::unique_ptr<SurfaceIdAllocator> surface_id_allocator_; 60 std::unique_ptr<SurfaceIdAllocator> surface_id_allocator_;
61 SurfaceId delegated_surface_id_; 61 SurfaceId delegated_surface_id_;
62 62
63 // Uses surface_manager_. 63 // Uses surface_manager_.
64 std::unique_ptr<SurfaceFactory> surface_factory_; 64 std::unique_ptr<SurfaceFactory> surface_factory_;
65 65
66 // Uses surface_manager_. 66 // Uses surface_manager_.
67 std::unique_ptr<Display> display_; 67 std::unique_ptr<Display> display_;
68 68
69 bool bound_ = false; 69 bool bound_ = false;
70 70
71 base::WeakPtrFactory<TestDelegatingOutputSurface> weak_ptrs_; 71 base::WeakPtrFactory<TestDelegatingOutputSurface> weak_ptrs_;
72 }; 72 };
73 73
74 } // namespace cc 74 } // namespace cc
75 75
76 #endif // CC_TEST_TEST_DELEGATING_OUTPUT_SURFACE_H_ 76 #endif // CC_TEST_TEST_DELEGATING_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/surfaces/display_scheduler.cc ('k') | cc/test/test_delegating_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698