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

Unified Diff: ui/compositor/test_web_graphics_context_3d.cc

Issue 10635024: Return different IDs from TestWebGraphicsContext3D::createTexture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/test_web_graphics_context_3d.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test_web_graphics_context_3d.cc
diff --git a/ui/compositor/test_web_graphics_context_3d.cc b/ui/compositor/test_web_graphics_context_3d.cc
index 0031da0416357204ba053932f99bfbf3e2ff44d8..7afa4b9618fa72b53497d29bb08eff1ddebc3b8e 100644
--- a/ui/compositor/test_web_graphics_context_3d.cc
+++ b/ui/compositor/test_web_graphics_context_3d.cc
@@ -9,7 +9,9 @@
namespace ui {
-TestWebGraphicsContext3D::TestWebGraphicsContext3D() {}
+TestWebGraphicsContext3D::TestWebGraphicsContext3D()
+ : next_texture_id_(1) {}
+
TestWebGraphicsContext3D::~TestWebGraphicsContext3D() {}
void TestWebGraphicsContext3D::Initialize() {
@@ -216,7 +218,7 @@ WebKit::WebGLId TestWebGraphicsContext3D::createShader(
}
WebKit::WebGLId TestWebGraphicsContext3D::createTexture() {
- return 1;
+ return next_texture_id_++;
}
WebKit::WebGLId TestWebGraphicsContext3D::createQueryEXT()
« no previous file with comments | « ui/compositor/test_web_graphics_context_3d.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698