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

Side by Side Diff: cc/test/test_web_graphics_context_3d.cc

Issue 21026005: aura: Remove CreateOffscreenContext from ui::ContextFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: offscreencontext: clang-format Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/test/test_web_graphics_context_3d.h" 5 #include "cc/test/test_web_graphics_context_3d.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 next_image_id(1), 47 next_image_id(1),
48 next_texture_id(1) { 48 next_texture_id(1) {
49 } 49 }
50 50
51 TestWebGraphicsContext3D::Namespace::~Namespace() { 51 TestWebGraphicsContext3D::Namespace::~Namespace() {
52 g_shared_namespace_lock.Get().AssertAcquired(); 52 g_shared_namespace_lock.Get().AssertAcquired();
53 if (shared_namespace_ == this) 53 if (shared_namespace_ == this)
54 shared_namespace_ = NULL; 54 shared_namespace_ = NULL;
55 } 55 }
56 56
57 // static
58 scoped_ptr<TestWebGraphicsContext3D> TestWebGraphicsContext3D::Create() {
59 return make_scoped_ptr(new TestWebGraphicsContext3D());
60 }
61
62 // static
63 base::Callback<scoped_ptr<TestWebGraphicsContext3D>()>
64 TestWebGraphicsContext3D::CreateFactory() {
65 return base::Bind(&TestWebGraphicsContext3D::Create);
66 }
67
68 static scoped_ptr<WebKit::WebGraphicsContext3D> CreateBaseFactory() {
69 return scoped_ptr<WebKit::WebGraphicsContext3D>(
70 TestWebGraphicsContext3D::Create());
71 }
72
73 // static
74 base::Callback<scoped_ptr<WebKit::WebGraphicsContext3D>()>
75 TestWebGraphicsContext3D::CreateBaseFactory() {
76 return base::Bind(&cc::CreateBaseFactory);
77 }
78
57 TestWebGraphicsContext3D::TestWebGraphicsContext3D() 79 TestWebGraphicsContext3D::TestWebGraphicsContext3D()
58 : FakeWebGraphicsContext3D(), 80 : FakeWebGraphicsContext3D(),
59 context_id_(s_context_id++), 81 context_id_(s_context_id++),
60 support_swapbuffers_complete_callback_(true), 82 support_swapbuffers_complete_callback_(true),
61 have_extension_io_surface_(false), 83 have_extension_io_surface_(false),
62 have_extension_egl_image_(false), 84 have_extension_egl_image_(false),
63 times_make_current_succeeds_(-1), 85 times_make_current_succeeds_(-1),
64 times_bind_texture_succeeds_(-1), 86 times_bind_texture_succeeds_(-1),
65 times_end_query_succeeds_(-1), 87 times_end_query_succeeds_(-1),
66 times_gen_mailbox_succeeds_(-1), 88 times_gen_mailbox_succeeds_(-1),
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 657
636 TestWebGraphicsContext3D::Buffer::Buffer() : target(0) {} 658 TestWebGraphicsContext3D::Buffer::Buffer() : target(0) {}
637 659
638 TestWebGraphicsContext3D::Buffer::~Buffer() {} 660 TestWebGraphicsContext3D::Buffer::~Buffer() {}
639 661
640 TestWebGraphicsContext3D::Image::Image() {} 662 TestWebGraphicsContext3D::Image::Image() {}
641 663
642 TestWebGraphicsContext3D::Image::~Image() {} 664 TestWebGraphicsContext3D::Image::~Image() {}
643 665
644 } // namespace cc 666 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698