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

Side by Side Diff: gpu/command_buffer/service/context_state.cc

Issue 1725113002: gpu: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 (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 "gpu/command_buffer/service/context_state.h" 5 #include "gpu/command_buffer/service/context_state.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 return buffer->service_id(); 80 return buffer->service_id();
81 return 0; 81 return 0;
82 } 82 }
83 83
84 } // anonymous namespace. 84 } // anonymous namespace.
85 85
86 TextureUnit::TextureUnit() 86 TextureUnit::TextureUnit()
87 : bind_target(GL_TEXTURE_2D) { 87 : bind_target(GL_TEXTURE_2D) {
88 } 88 }
89 89
90 TextureUnit::TextureUnit(const TextureUnit& other) = default;
91
90 TextureUnit::~TextureUnit() { 92 TextureUnit::~TextureUnit() {
91 } 93 }
92 94
93 bool Vec4::Equal(const Vec4& other) const { 95 bool Vec4::Equal(const Vec4& other) const {
94 if (type_ != other.type_) 96 if (type_ != other.type_)
95 return false; 97 return false;
96 switch (type_) { 98 switch (type_) {
97 case kFloat: 99 case kFloat:
98 for (size_t ii = 0; ii < 4; ++ii) { 100 for (size_t ii = 0; ii < 4; ++ii) {
99 if (v_[ii].float_value != other.v_[ii].float_value) 101 if (v_[ii].float_value != other.v_[ii].float_value)
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 UpdateUnpackParameters(); 628 UpdateUnpackParameters();
627 } 629 }
628 630
629 // Include the auto-generated part of this file. We split this because it means 631 // Include the auto-generated part of this file. We split this because it means
630 // we can easily edit the non-auto generated parts right here in this file 632 // we can easily edit the non-auto generated parts right here in this file
631 // instead of having to edit some template or the code generator. 633 // instead of having to edit some template or the code generator.
632 #include "gpu/command_buffer/service/context_state_impl_autogen.h" 634 #include "gpu/command_buffer/service/context_state_impl_autogen.h"
633 635
634 } // namespace gles2 636 } // namespace gles2
635 } // namespace gpu 637 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698