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

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

Issue 10534173: GPU Program Caching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
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_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 32
33 #if defined(OS_MACOSX) 33 #if defined(OS_MACOSX)
34 #include "ui/surface/accelerated_surface_mac.h" 34 #include "ui/surface/accelerated_surface_mac.h"
35 #endif 35 #endif
36 36
37 class GpuChannel; 37 class GpuChannel;
38 struct GpuMemoryAllocation; 38 struct GpuMemoryAllocation;
39 class GpuWatchdog; 39 class GpuWatchdog;
40 40
41 namespace gpu { 41 namespace gpu {
42
43 class ShaderCache;
44
42 namespace gles2 { 45 namespace gles2 {
43 class MailboxManager; 46 class MailboxManager;
44 } 47 }
45 } 48 }
46 49
47 // This Base class is used to expose methods of GpuCommandBufferStub used for 50 // This Base class is used to expose methods of GpuCommandBufferStub used for
48 // testability. 51 // testability.
49 class CONTENT_EXPORT GpuCommandBufferStubBase { 52 class CONTENT_EXPORT GpuCommandBufferStubBase {
50 public: 53 public:
51 struct CONTENT_EXPORT SurfaceState { 54 struct CONTENT_EXPORT SurfaceState {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const gfx::GLSurfaceHandle& handle, 98 const gfx::GLSurfaceHandle& handle,
96 gpu::gles2::MailboxManager* mailbox_manager, 99 gpu::gles2::MailboxManager* mailbox_manager,
97 const gfx::Size& size, 100 const gfx::Size& size,
98 const gpu::gles2::DisallowedFeatures& disallowed_features, 101 const gpu::gles2::DisallowedFeatures& disallowed_features,
99 const std::string& allowed_extensions, 102 const std::string& allowed_extensions,
100 const std::vector<int32>& attribs, 103 const std::vector<int32>& attribs,
101 gfx::GpuPreference gpu_preference, 104 gfx::GpuPreference gpu_preference,
102 int32 route_id, 105 int32 route_id,
103 int32 surface_id, 106 int32 surface_id,
104 GpuWatchdog* watchdog, 107 GpuWatchdog* watchdog,
105 bool software); 108 bool software,
109 base::WeakPtr<gpu::ShaderCache> shader_cache);
106 110
107 virtual ~GpuCommandBufferStub(); 111 virtual ~GpuCommandBufferStub();
108 112
109 // IPC::Channel::Listener implementation: 113 // IPC::Channel::Listener implementation:
110 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 114 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
111 115
112 // IPC::Message::Sender implementation: 116 // IPC::Message::Sender implementation:
113 virtual bool Send(IPC::Message* msg) OVERRIDE; 117 virtual bool Send(IPC::Message* msg) OVERRIDE;
114 118
115 // GpuCommandBufferStubBase implementation: 119 // GpuCommandBufferStubBase implementation:
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 271
268 // A queue of sync points associated with this stub. 272 // A queue of sync points associated with this stub.
269 std::deque<uint32> sync_points_; 273 std::deque<uint32> sync_points_;
270 274
271 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_; 275 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_;
272 276
273 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 277 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
274 }; 278 };
275 279
276 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 280 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698