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

Side by Side Diff: content/common/gpu/gpu_channel_manager.cc

Issue 630853003: Replace OVERRIDE and FINAL with override and final in content/common/[a-s]* (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
« no previous file with comments | « content/common/gpu/gpu_channel_manager.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/common/gpu/gpu_channel_manager.h" 5 #include "content/common/gpu/gpu_channel_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "content/common/gpu/gpu_channel.h" 9 #include "content/common/gpu/gpu_channel.h"
10 #include "content/common/gpu/gpu_memory_buffer_factory.h" 10 #include "content/common/gpu/gpu_memory_buffer_factory.h"
(...skipping 13 matching lines...) Expand all
24 namespace content { 24 namespace content {
25 25
26 namespace { 26 namespace {
27 27
28 class GpuChannelManagerMessageFilter : public IPC::MessageFilter { 28 class GpuChannelManagerMessageFilter : public IPC::MessageFilter {
29 public: 29 public:
30 GpuChannelManagerMessageFilter( 30 GpuChannelManagerMessageFilter(
31 GpuMemoryBufferFactory* gpu_memory_buffer_factory) 31 GpuMemoryBufferFactory* gpu_memory_buffer_factory)
32 : sender_(NULL), gpu_memory_buffer_factory_(gpu_memory_buffer_factory) {} 32 : sender_(NULL), gpu_memory_buffer_factory_(gpu_memory_buffer_factory) {}
33 33
34 virtual void OnFilterAdded(IPC::Sender* sender) OVERRIDE { 34 virtual void OnFilterAdded(IPC::Sender* sender) override {
35 DCHECK(!sender_); 35 DCHECK(!sender_);
36 sender_ = sender; 36 sender_ = sender;
37 } 37 }
38 38
39 virtual void OnFilterRemoved() OVERRIDE { 39 virtual void OnFilterRemoved() override {
40 DCHECK(sender_); 40 DCHECK(sender_);
41 sender_ = NULL; 41 sender_ = NULL;
42 } 42 }
43 43
44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE { 44 virtual bool OnMessageReceived(const IPC::Message& message) override {
45 DCHECK(sender_); 45 DCHECK(sender_);
46 bool handled = true; 46 bool handled = true;
47 IPC_BEGIN_MESSAGE_MAP(GpuChannelManagerMessageFilter, message) 47 IPC_BEGIN_MESSAGE_MAP(GpuChannelManagerMessageFilter, message)
48 IPC_MESSAGE_HANDLER(GpuMsg_CreateGpuMemoryBuffer, OnCreateGpuMemoryBuffer) 48 IPC_MESSAGE_HANDLER(GpuMsg_CreateGpuMemoryBuffer, OnCreateGpuMemoryBuffer)
49 IPC_MESSAGE_UNHANDLED(handled = false) 49 IPC_MESSAGE_UNHANDLED(handled = false)
50 IPC_END_MESSAGE_MAP() 50 IPC_END_MESSAGE_MAP()
51 return handled; 51 return handled;
52 } 52 }
53 53
54 protected: 54 protected:
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 gfx::GLSurface* GpuChannelManager::GetDefaultOffscreenSurface() { 305 gfx::GLSurface* GpuChannelManager::GetDefaultOffscreenSurface() {
306 if (!default_offscreen_surface_.get()) { 306 if (!default_offscreen_surface_.get()) {
307 default_offscreen_surface_ = 307 default_offscreen_surface_ =
308 gfx::GLSurface::CreateOffscreenGLSurface(gfx::Size()); 308 gfx::GLSurface::CreateOffscreenGLSurface(gfx::Size());
309 } 309 }
310 return default_offscreen_surface_.get(); 310 return default_offscreen_surface_.get();
311 } 311 }
312 312
313 } // namespace content 313 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_manager.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698