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

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

Issue 1703163002: Remove dependency on GURL from content/common/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 15 matching lines...) Expand all
26 #include "ipc/ipc_listener.h" 26 #include "ipc/ipc_listener.h"
27 #include "ipc/ipc_sender.h" 27 #include "ipc/ipc_sender.h"
28 #include "media/video/video_decode_accelerator.h" 28 #include "media/video/video_decode_accelerator.h"
29 #include "ui/events/latency_info.h" 29 #include "ui/events/latency_info.h"
30 #include "ui/gfx/geometry/size.h" 30 #include "ui/gfx/geometry/size.h"
31 #include "ui/gfx/gpu_memory_buffer.h" 31 #include "ui/gfx/gpu_memory_buffer.h"
32 #include "ui/gfx/native_widget_types.h" 32 #include "ui/gfx/native_widget_types.h"
33 #include "ui/gfx/swap_result.h" 33 #include "ui/gfx/swap_result.h"
34 #include "ui/gl/gl_surface.h" 34 #include "ui/gl/gl_surface.h"
35 #include "ui/gl/gpu_preference.h" 35 #include "ui/gl/gpu_preference.h"
36 #include "url/gurl.h"
37 36
38 namespace gpu { 37 namespace gpu {
39 struct Mailbox; 38 struct Mailbox;
40 struct SyncToken; 39 struct SyncToken;
41 class SyncPointClient; 40 class SyncPointClient;
42 class SyncPointManager; 41 class SyncPointManager;
43 class ValueStateMap; 42 class ValueStateMap;
44 namespace gles2 { 43 namespace gles2 {
45 class MailboxManager; 44 class MailboxManager;
46 class SubscriptionRefSet; 45 class SubscriptionRefSet;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 gpu::gles2::SubscriptionRefSet* subscription_ref_set, 84 gpu::gles2::SubscriptionRefSet* subscription_ref_set,
86 gpu::ValueStateMap* pending_valuebuffer_state, 85 gpu::ValueStateMap* pending_valuebuffer_state,
87 const gfx::Size& size, 86 const gfx::Size& size,
88 const gpu::gles2::DisallowedFeatures& disallowed_features, 87 const gpu::gles2::DisallowedFeatures& disallowed_features,
89 const std::vector<int32_t>& attribs, 88 const std::vector<int32_t>& attribs,
90 gfx::GpuPreference gpu_preference, 89 gfx::GpuPreference gpu_preference,
91 int32_t stream_id, 90 int32_t stream_id,
92 int32_t route_id, 91 int32_t route_id,
93 bool offscreen, 92 bool offscreen,
94 GpuWatchdog* watchdog, 93 GpuWatchdog* watchdog,
95 const GURL& active_url); 94 const std::string& active_url);
96 95
97 ~GpuCommandBufferStub() override; 96 ~GpuCommandBufferStub() override;
98 97
99 // IPC::Listener implementation: 98 // IPC::Listener implementation:
100 bool OnMessageReceived(const IPC::Message& message) override; 99 bool OnMessageReceived(const IPC::Message& message) override;
101 100
102 // IPC::Sender implementation: 101 // IPC::Sender implementation:
103 bool Send(IPC::Message* msg) override; 102 bool Send(IPC::Message* msg) override;
104 103
105 gpu::gles2::MemoryTracker* GetMemoryTracker() const; 104 gpu::gles2::MemoryTracker* GetMemoryTracker() const;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 bool waiting_for_sync_point_; 276 bool waiting_for_sync_point_;
278 277
279 base::TimeTicks process_delayed_work_time_; 278 base::TimeTicks process_delayed_work_time_;
280 uint32_t previous_processed_num_; 279 uint32_t previous_processed_num_;
281 base::TimeTicks last_idle_time_; 280 base::TimeTicks last_idle_time_;
282 281
283 scoped_refptr<gpu::PreemptionFlag> preemption_flag_; 282 scoped_refptr<gpu::PreemptionFlag> preemption_flag_;
284 283
285 LatencyInfoCallback latency_info_callback_; 284 LatencyInfoCallback latency_info_callback_;
286 285
287 GURL active_url_; 286 std::string active_url_;
288 size_t active_url_hash_; 287 size_t active_url_hash_;
289 288
290 scoped_ptr<WaitForCommandState> wait_for_token_; 289 scoped_ptr<WaitForCommandState> wait_for_token_;
291 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 290 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
292 291
293 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 292 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
294 }; 293 };
295 294
296 } // namespace content 295 } // namespace content
297 296
298 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 297 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698