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

Side by Side Diff: content/common/gpu/client/gpu_in_process_context_tests.cc

Issue 649533003: C++11 declares a type safe null pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Presubmit errors 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stdio.h> 5 #include <stdio.h>
6 #include <cmath> 6 #include <cmath>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "content/public/test/unittest_test_suite.h" 10 #include "content/public/test/unittest_test_suite.h"
(...skipping 11 matching lines...) Expand all
22 blink::WebGraphicsContext3D::Attributes attributes; 22 blink::WebGraphicsContext3D::Attributes attributes;
23 bool lose_context_when_out_of_memory = false; 23 bool lose_context_when_out_of_memory = false;
24 typedef WebGraphicsContext3DInProcessCommandBufferImpl WGC3DIPCBI; 24 typedef WebGraphicsContext3DInProcessCommandBufferImpl WGC3DIPCBI;
25 context_ = WGC3DIPCBI::CreateOffscreenContext( 25 context_ = WGC3DIPCBI::CreateOffscreenContext(
26 attributes, lose_context_when_out_of_memory); 26 attributes, lose_context_when_out_of_memory);
27 context_->InitializeOnCurrentThread(); 27 context_->InitializeOnCurrentThread();
28 context_support_ = context_->GetContextSupport(); 28 context_support_ = context_->GetContextSupport();
29 } 29 }
30 30
31 virtual void TearDown() { 31 virtual void TearDown() {
32 context_.reset(NULL); 32 context_.reset(nullptr);
33 } 33 }
34 34
35 protected: 35 protected:
36 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context_; 36 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context_;
37 gpu::ContextSupport* context_support_; 37 gpu::ContextSupport* context_support_;
38 }; 38 };
39 39
40 } // namespace 40 } // namespace
41 41
42 // Include the actual tests. 42 // Include the actual tests.
43 #define CONTEXT_TEST_F TEST_F 43 #define CONTEXT_TEST_F TEST_F
44 #include "content/common/gpu/client/gpu_context_tests.h" 44 #include "content/common/gpu/client/gpu_context_tests.h"
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/client/gpu_memory_buffer_factory_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698