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

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

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 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 | « cc/test/test_context_provider.cc ('k') | cc/trees/draw_property_utils.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 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 "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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 height_(0), 64 height_(0),
65 scale_factor_(-1.f), 65 scale_factor_(-1.f),
66 test_support_(NULL), 66 test_support_(NULL),
67 last_update_type_(NO_UPDATE), 67 last_update_type_(NO_UPDATE),
68 next_insert_sync_point_(1), 68 next_insert_sync_point_(1),
69 last_waited_sync_point_(0), 69 last_waited_sync_point_(0),
70 unpack_alignment_(4), 70 unpack_alignment_(4),
71 bound_buffer_(0), 71 bound_buffer_(0),
72 weak_ptr_factory_(this) { 72 weak_ptr_factory_(this) {
73 CreateNamespace(); 73 CreateNamespace();
74 set_support_image(true);
74 } 75 }
75 76
76 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() { 77 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() {
77 base::AutoLock lock(g_shared_namespace_lock.Get()); 78 base::AutoLock lock(g_shared_namespace_lock.Get());
78 namespace_ = NULL; 79 namespace_ = NULL;
79 } 80 }
80 81
81 void TestWebGraphicsContext3D::CreateNamespace() { 82 void TestWebGraphicsContext3D::CreateNamespace() {
82 base::AutoLock lock(g_shared_namespace_lock.Get()); 83 base::AutoLock lock(g_shared_namespace_lock.Get());
83 if (shared_namespace_) { 84 if (shared_namespace_) {
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 801
801 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} 802 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {}
802 803
803 TestWebGraphicsContext3D::Buffer::~Buffer() {} 804 TestWebGraphicsContext3D::Buffer::~Buffer() {}
804 805
805 TestWebGraphicsContext3D::Image::Image() {} 806 TestWebGraphicsContext3D::Image::Image() {}
806 807
807 TestWebGraphicsContext3D::Image::~Image() {} 808 TestWebGraphicsContext3D::Image::~Image() {}
808 809
809 } // namespace cc 810 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698