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

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

Issue 780133002: Add optimization for CHROMIUM_subscribe_uniform extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman@ review 2 Created 6 years 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 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
30 #include "ui/gl/gl_surface.h" 30 #include "ui/gl/gl_surface.h"
31 #include "ui/gl/gpu_preference.h" 31 #include "ui/gl/gpu_preference.h"
32 #include "url/gurl.h" 32 #include "url/gurl.h"
33 33
34 namespace gpu { 34 namespace gpu {
35 struct Mailbox; 35 struct Mailbox;
36 class ValueStateMap; 36 class ValueStateMap;
37 namespace gles2 { 37 namespace gles2 {
38 class MailboxManager; 38 class MailboxManager;
39 class SubscriptionRefSet;
39 } 40 }
40 } 41 }
41 42
42 namespace content { 43 namespace content {
43 44
44 class GpuChannel; 45 class GpuChannel;
45 class GpuVideoDecodeAccelerator; 46 class GpuVideoDecodeAccelerator;
46 class GpuVideoEncodeAccelerator; 47 class GpuVideoEncodeAccelerator;
47 class GpuWatchdog; 48 class GpuWatchdog;
48 struct WaitForCommandState; 49 struct WaitForCommandState;
(...skipping 14 matching lines...) Expand all
63 }; 64 };
64 65
65 typedef base::Callback<void(const std::vector<ui::LatencyInfo>&)> 66 typedef base::Callback<void(const std::vector<ui::LatencyInfo>&)>
66 LatencyInfoCallback; 67 LatencyInfoCallback;
67 68
68 GpuCommandBufferStub( 69 GpuCommandBufferStub(
69 GpuChannel* channel, 70 GpuChannel* channel,
70 GpuCommandBufferStub* share_group, 71 GpuCommandBufferStub* share_group,
71 const gfx::GLSurfaceHandle& handle, 72 const gfx::GLSurfaceHandle& handle,
72 gpu::gles2::MailboxManager* mailbox_manager, 73 gpu::gles2::MailboxManager* mailbox_manager,
74 gpu::gles2::SubscriptionRefSet* subscription_ref_set,
73 gpu::ValueStateMap* pending_valuebuffer_state, 75 gpu::ValueStateMap* pending_valuebuffer_state,
74 const gfx::Size& size, 76 const gfx::Size& size,
75 const gpu::gles2::DisallowedFeatures& disallowed_features, 77 const gpu::gles2::DisallowedFeatures& disallowed_features,
76 const std::vector<int32>& attribs, 78 const std::vector<int32>& attribs,
77 gfx::GpuPreference gpu_preference, 79 gfx::GpuPreference gpu_preference,
78 bool use_virtualized_gl_context, 80 bool use_virtualized_gl_context,
79 int32 route_id, 81 int32 route_id,
80 int32 surface_id, 82 int32 surface_id,
81 GpuWatchdog* watchdog, 83 GpuWatchdog* watchdog,
82 bool software, 84 bool software,
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 size_t total_gpu_memory_; 281 size_t total_gpu_memory_;
280 scoped_ptr<WaitForCommandState> wait_for_token_; 282 scoped_ptr<WaitForCommandState> wait_for_token_;
281 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 283 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
282 284
283 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 285 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
284 }; 286 };
285 287
286 } // namespace content 288 } // namespace content
287 289
288 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 290 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698