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

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

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const gpu::gles2::DisallowedFeatures& disallowed_features, 73 const gpu::gles2::DisallowedFeatures& disallowed_features,
74 const std::vector<int32>& attribs, 74 const std::vector<int32>& attribs,
75 gfx::GpuPreference gpu_preference, 75 gfx::GpuPreference gpu_preference,
76 bool use_virtualized_gl_context, 76 bool use_virtualized_gl_context,
77 int32 route_id, 77 int32 route_id,
78 int32 surface_id, 78 int32 surface_id,
79 GpuWatchdog* watchdog, 79 GpuWatchdog* watchdog,
80 bool software, 80 bool software,
81 const GURL& active_url); 81 const GURL& active_url);
82 82
83 virtual ~GpuCommandBufferStub(); 83 ~GpuCommandBufferStub() override;
84 84
85 // IPC::Listener implementation: 85 // IPC::Listener implementation:
86 virtual bool OnMessageReceived(const IPC::Message& message) override; 86 bool OnMessageReceived(const IPC::Message& message) override;
87 87
88 // IPC::Sender implementation: 88 // IPC::Sender implementation:
89 virtual bool Send(IPC::Message* msg) override; 89 bool Send(IPC::Message* msg) override;
90 90
91 // GpuMemoryManagerClient implementation: 91 // GpuMemoryManagerClient implementation:
92 virtual gfx::Size GetSurfaceSize() const override; 92 gfx::Size GetSurfaceSize() const override;
93 virtual gpu::gles2::MemoryTracker* GetMemoryTracker() const override; 93 gpu::gles2::MemoryTracker* GetMemoryTracker() const override;
94 virtual void SetMemoryAllocation( 94 void SetMemoryAllocation(const gpu::MemoryAllocation& allocation) override;
95 const gpu::MemoryAllocation& allocation) override; 95 void SuggestHaveFrontBuffer(bool suggest_have_frontbuffer) override;
96 virtual void SuggestHaveFrontBuffer(bool suggest_have_frontbuffer) override; 96 bool GetTotalGpuMemory(uint64* bytes) override;
97 virtual bool GetTotalGpuMemory(uint64* bytes) override;
98 97
99 // Whether this command buffer can currently handle IPC messages. 98 // Whether this command buffer can currently handle IPC messages.
100 bool IsScheduled(); 99 bool IsScheduled();
101 100
102 // If the command buffer is pre-empted and cannot process commands. 101 // If the command buffer is pre-empted and cannot process commands.
103 bool IsPreempted() const { 102 bool IsPreempted() const {
104 return scheduler_.get() && scheduler_->IsPreempted(); 103 return scheduler_.get() && scheduler_->IsPreempted();
105 } 104 }
106 105
107 // Whether there are commands in the buffer that haven't been processed. 106 // Whether there are commands in the buffer that haven't been processed.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 size_t total_gpu_memory_; 277 size_t total_gpu_memory_;
279 scoped_ptr<WaitForCommandState> wait_for_token_; 278 scoped_ptr<WaitForCommandState> wait_for_token_;
280 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 279 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
281 280
282 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 281 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
283 }; 282 };
284 283
285 } // namespace content 284 } // namespace content
286 285
287 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 286 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698