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

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

Issue 25455002: Remove WGC3D::width(), height(), reshape() implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
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/debug/test_web_graphics_context_3d.h" 5 #include "cc/debug/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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 if (times_make_current_succeeds_ >= 0) { 129 if (times_make_current_succeeds_ >= 0) {
130 if (!times_make_current_succeeds_) { 130 if (!times_make_current_succeeds_) {
131 loseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB, 131 loseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB,
132 GL_INNOCENT_CONTEXT_RESET_ARB); 132 GL_INNOCENT_CONTEXT_RESET_ARB);
133 } 133 }
134 --times_make_current_succeeds_; 134 --times_make_current_succeeds_;
135 } 135 }
136 return !context_lost_; 136 return !context_lost_;
137 } 137 }
138 138
139 int TestWebGraphicsContext3D::width() {
140 return width_;
141 }
142
143 int TestWebGraphicsContext3D::height() {
144 return height_;
145 }
146
147 void TestWebGraphicsContext3D::reshapeWithScaleFactor( 139 void TestWebGraphicsContext3D::reshapeWithScaleFactor(
148 int width, int height, float scale_factor) { 140 int width, int height, float scale_factor) {
149 width_ = width; 141 width_ = width;
150 height_ = height; 142 height_ = height;
151 } 143 }
152 144
153 bool TestWebGraphicsContext3D::isContextLost() { 145 bool TestWebGraphicsContext3D::isContextLost() {
154 return context_lost_; 146 return context_lost_;
155 } 147 }
156 148
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 615
624 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} 616 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {}
625 617
626 TestWebGraphicsContext3D::Buffer::~Buffer() {} 618 TestWebGraphicsContext3D::Buffer::~Buffer() {}
627 619
628 TestWebGraphicsContext3D::Image::Image() {} 620 TestWebGraphicsContext3D::Image::Image() {}
629 621
630 TestWebGraphicsContext3D::Image::~Image() {} 622 TestWebGraphicsContext3D::Image::~Image() {}
631 623
632 } // namespace cc 624 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/test_web_graphics_context_3d.h ('k') | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698