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

Side by Side Diff: content/common/gpu/image_transport_surface.h

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Patch Set: rebase Created 5 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 | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/image_transport_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // IPC::Listener implementation: 114 // IPC::Listener implementation:
115 bool OnMessageReceived(const IPC::Message& message) override; 115 bool OnMessageReceived(const IPC::Message& message) override;
116 116
117 // Helper send functions. Caller fills in the surface specific params 117 // Helper send functions. Caller fills in the surface specific params
118 // like size and surface id. The helper fills in the rest. 118 // like size and surface id. The helper fills in the rest.
119 #if defined(OS_MACOSX) 119 #if defined(OS_MACOSX)
120 void SendAcceleratedSurfaceBuffersSwapped( 120 void SendAcceleratedSurfaceBuffersSwapped(
121 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params); 121 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params params);
122 #endif 122 #endif
123 123
124 void SetPreemptByFlag(
125 scoped_refptr<gpu::PreemptionFlag> preemption_flag);
126
127 // Make the surface's context current. 124 // Make the surface's context current.
128 bool MakeCurrent(); 125 bool MakeCurrent();
129 126
130 // Set the default swap interval on the surface. 127 // Set the default swap interval on the surface.
131 static void SetSwapInterval(gfx::GLContext* context); 128 static void SetSwapInterval(gfx::GLContext* context);
132 129
133 GpuChannelManager* manager() const { return manager_; } 130 GpuChannelManager* manager() const { return manager_; }
134 GpuCommandBufferStub* stub() const { return stub_.get(); } 131 GpuCommandBufferStub* stub() const { return stub_.get(); }
135 132
136 private: 133 private:
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 bool did_set_swap_interval_; 198 bool did_set_swap_interval_;
202 std::vector<ui::LatencyInfo> latency_info_; 199 std::vector<ui::LatencyInfo> latency_info_;
203 base::WeakPtrFactory<PassThroughImageTransportSurface> weak_ptr_factory_; 200 base::WeakPtrFactory<PassThroughImageTransportSurface> weak_ptr_factory_;
204 201
205 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 202 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
206 }; 203 };
207 204
208 } // namespace content 205 } // namespace content
209 206
210 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 207 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/common/gpu/image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698