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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_memory_buffer_factory_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index ff7cac0bf53e17716e43a3d089290059f1575264..b1d149756780428994c821b625b16414eafc76fd 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -67,7 +67,7 @@ class GpuCommandBufferMemoryTracker : public gpu::gles2::MemoryTracker {
CreateTrackingGroup(channel->renderer_pid(), this)) {
}
- virtual void TrackMemoryAllocatedChange(
+ void TrackMemoryAllocatedChange(
size_t old_size,
size_t new_size,
gpu::gles2::MemoryTracker::Pool pool) override {
@@ -75,13 +75,12 @@ class GpuCommandBufferMemoryTracker : public gpu::gles2::MemoryTracker {
old_size, new_size, pool);
}
- virtual bool EnsureGPUMemoryAvailable(size_t size_needed) override {
+ bool EnsureGPUMemoryAvailable(size_t size_needed) override {
return tracking_group_->EnsureGPUMemoryAvailable(size_needed);
};
private:
- virtual ~GpuCommandBufferMemoryTracker() {
- }
+ ~GpuCommandBufferMemoryTracker() override {}
scoped_ptr<GpuMemoryTrackingGroup> tracking_group_;
DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferMemoryTracker);
@@ -117,7 +116,7 @@ class DevToolsChannelData : public base::debug::ConvertableToTraceFormat {
static scoped_refptr<base::debug::ConvertableToTraceFormat> CreateForChannel(
GpuChannel* channel);
- virtual void AppendAsTraceFormat(std::string* out) const override {
+ void AppendAsTraceFormat(std::string* out) const override {
std::string tmp;
base::JSONWriter::Write(value_.get(), &tmp);
*out += tmp;
@@ -125,7 +124,7 @@ class DevToolsChannelData : public base::debug::ConvertableToTraceFormat {
private:
explicit DevToolsChannelData(base::Value* value) : value_(value) {}
- virtual ~DevToolsChannelData() {}
+ ~DevToolsChannelData() override {}
scoped_ptr<base::Value> value_;
DISALLOW_COPY_AND_ASSIGN(DevToolsChannelData);
};
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_memory_buffer_factory_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698