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

Side by Side Diff: content/gpu/gpu_child_thread.h

Issue 1389133002: content: Use type-parameterized tests for GpuMemoryBuffer implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add blankline Created 5 years, 2 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/content_tests.gypi ('k') | content/gpu/gpu_child_thread.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_GPU_GPU_CHILD_THREAD_H_ 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const DeferredMessages& deferred_messages, 48 const DeferredMessages& deferred_messages,
49 GpuMemoryBufferFactory* gpu_memory_buffer_factory, 49 GpuMemoryBufferFactory* gpu_memory_buffer_factory,
50 gpu::SyncPointManager* sync_point_manager); 50 gpu::SyncPointManager* sync_point_manager);
51 51
52 GpuChildThread(const InProcessChildThreadParams& params, 52 GpuChildThread(const InProcessChildThreadParams& params,
53 GpuMemoryBufferFactory* gpu_memory_buffer_factory, 53 GpuMemoryBufferFactory* gpu_memory_buffer_factory,
54 gpu::SyncPointManager* sync_point_manager); 54 gpu::SyncPointManager* sync_point_manager);
55 55
56 ~GpuChildThread() override; 56 ~GpuChildThread() override;
57 57
58 static gfx::GpuMemoryBufferType GetGpuMemoryBufferFactoryType();
59
60 void Shutdown() override; 58 void Shutdown() override;
61 59
62 void Init(const base::Time& process_start_time); 60 void Init(const base::Time& process_start_time);
63 void StopWatchdog(); 61 void StopWatchdog();
64 62
65 // ChildThread overrides. 63 // ChildThread overrides.
66 bool Send(IPC::Message* msg) override; 64 bool Send(IPC::Message* msg) override;
67 bool OnControlMessageReceived(const IPC::Message& msg) override; 65 bool OnControlMessageReceived(const IPC::Message& msg) override;
68 bool OnMessageReceived(const IPC::Message& msg) override; 66 bool OnMessageReceived(const IPC::Message& msg) override;
69 67
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 110
113 // The GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. 111 // The GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers.
114 GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; 112 GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
115 113
116 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 114 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
117 }; 115 };
118 116
119 } // namespace content 117 } // namespace content
120 118
121 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 119 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698