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

Side by Side Diff: cc/surfaces/display.h

Issue 2966803002: Limit the size of latency info storage (Closed)
Patch Set: Separate the checks for clarity Created 3 years, 5 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 | « no previous file | 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SURFACES_DISPLAY_H_ 5 #ifndef CC_SURFACES_DISPLAY_H_
6 #define CC_SURFACES_DISPLAY_H_ 6 #define CC_SURFACES_DISPLAY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void SurfaceDiscarded(const SurfaceId& surface_id) override; 80 void SurfaceDiscarded(const SurfaceId& surface_id) override;
81 81
82 // OutputSurfaceClient implementation. 82 // OutputSurfaceClient implementation.
83 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; 83 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override;
84 void DidReceiveSwapBuffersAck() override; 84 void DidReceiveSwapBuffersAck() override;
85 void DidReceiveTextureInUseResponses( 85 void DidReceiveTextureInUseResponses(
86 const gpu::TextureInUseResponses& responses) override; 86 const gpu::TextureInUseResponses& responses) override;
87 87
88 bool has_scheduler() const { return !!scheduler_; } 88 bool has_scheduler() const { return !!scheduler_; }
89 DirectRenderer* renderer_for_testing() const { return renderer_.get(); } 89 DirectRenderer* renderer_for_testing() const { return renderer_.get(); }
90 size_t stored_latency_info_size_for_testing() const {
91 return stored_latency_info_.size();
92 }
90 93
91 void ForceImmediateDrawAndSwapIfPossible(); 94 void ForceImmediateDrawAndSwapIfPossible();
92 95
93 private: 96 private:
94 void InitializeRenderer(); 97 void InitializeRenderer();
95 void UpdateRootSurfaceResourcesLocked(); 98 void UpdateRootSurfaceResourcesLocked();
96 void DidLoseContextProvider(); 99 void DidLoseContextProvider();
97 100
98 SharedBitmapManager* const bitmap_manager_; 101 SharedBitmapManager* const bitmap_manager_;
99 gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_; 102 gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_;
(...skipping 20 matching lines...) Expand all
120 SoftwareRenderer* software_renderer_ = nullptr; 123 SoftwareRenderer* software_renderer_ = nullptr;
121 std::vector<ui::LatencyInfo> stored_latency_info_; 124 std::vector<ui::LatencyInfo> stored_latency_info_;
122 125
123 private: 126 private:
124 DISALLOW_COPY_AND_ASSIGN(Display); 127 DISALLOW_COPY_AND_ASSIGN(Display);
125 }; 128 };
126 129
127 } // namespace cc 130 } // namespace cc
128 131
129 #endif // CC_SURFACES_DISPLAY_H_ 132 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698