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

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

Issue 2061993003: Pass responsibility for IOSurface-texture reuse to the gpu process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp85_query_in_use
Patch Set: Rebase. Created 4 years, 6 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/proto/renderer_settings.proto ('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 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
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "cc/output/output_surface_client.h" 12 #include "cc/output/output_surface_client.h"
13 #include "cc/output/renderer.h" 13 #include "cc/output/renderer.h"
14 #include "cc/resources/returned_resource.h" 14 #include "cc/resources/returned_resource.h"
15 #include "cc/scheduler/begin_frame_source.h" 15 #include "cc/scheduler/begin_frame_source.h"
16 #include "cc/surfaces/display_scheduler.h" 16 #include "cc/surfaces/display_scheduler.h"
17 #include "cc/surfaces/surface_aggregator.h" 17 #include "cc/surfaces/surface_aggregator.h"
18 #include "cc/surfaces/surface_id.h" 18 #include "cc/surfaces/surface_id.h"
19 #include "cc/surfaces/surface_manager.h" 19 #include "cc/surfaces/surface_manager.h"
20 #include "cc/surfaces/surfaces_export.h" 20 #include "cc/surfaces/surfaces_export.h"
21 #include "gpu/command_buffer/common/texture_in_use_response.h"
21 #include "ui/events/latency_info.h" 22 #include "ui/events/latency_info.h"
22 23
23 namespace gpu { 24 namespace gpu {
24 class GpuMemoryBufferManager; 25 class GpuMemoryBufferManager;
25 } 26 }
26 27
27 namespace gfx { 28 namespace gfx {
28 class Size; 29 class Size;
29 } 30 }
30 31
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // DisplaySchedulerClient implementation. 80 // DisplaySchedulerClient implementation.
80 bool DrawAndSwap() override; 81 bool DrawAndSwap() override;
81 82
82 // OutputSurfaceClient implementation. 83 // OutputSurfaceClient implementation.
83 void CommitVSyncParameters(base::TimeTicks timebase, 84 void CommitVSyncParameters(base::TimeTicks timebase,
84 base::TimeDelta interval) override; 85 base::TimeDelta interval) override;
85 void SetBeginFrameSource(BeginFrameSource* source) override; 86 void SetBeginFrameSource(BeginFrameSource* source) override;
86 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; 87 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override;
87 void DidSwapBuffers() override; 88 void DidSwapBuffers() override;
88 void DidSwapBuffersComplete() override; 89 void DidSwapBuffersComplete() override;
90 void DidReceiveTextureInUseResponses(
91 const gpu::TextureInUseResponses& responses) override;
89 void ReclaimResources(const CompositorFrameAck* ack) override; 92 void ReclaimResources(const CompositorFrameAck* ack) override;
90 void DidLoseOutputSurface() override; 93 void DidLoseOutputSurface() override;
91 void SetExternalTilePriorityConstraints( 94 void SetExternalTilePriorityConstraints(
92 const gfx::Rect& viewport_rect, 95 const gfx::Rect& viewport_rect,
93 const gfx::Transform& transform) override; 96 const gfx::Transform& transform) override;
94 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 97 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
95 void SetTreeActivationCallback(const base::Closure& callback) override; 98 void SetTreeActivationCallback(const base::Closure& callback) override;
96 void OnDraw(const gfx::Transform& transform, 99 void OnDraw(const gfx::Transform& transform,
97 const gfx::Rect& viewport, 100 const gfx::Rect& viewport,
98 const gfx::Rect& clip, 101 const gfx::Rect& clip,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 std::unique_ptr<DirectRenderer> renderer_; 141 std::unique_ptr<DirectRenderer> renderer_;
139 std::vector<ui::LatencyInfo> stored_latency_info_; 142 std::vector<ui::LatencyInfo> stored_latency_info_;
140 143
141 private: 144 private:
142 DISALLOW_COPY_AND_ASSIGN(Display); 145 DISALLOW_COPY_AND_ASSIGN(Display);
143 }; 146 };
144 147
145 } // namespace cc 148 } // namespace cc
146 149
147 #endif // CC_SURFACES_DISPLAY_H_ 150 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/proto/renderer_settings.proto ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698