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

Unified Diff: ppapi/tests/test_compositor.cc

Issue 475123003: [PPAPI] Add target param for CompositorLayer::SetTexture(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review issues Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/compositor_layer_data.h ('k') | ppapi/thunk/ppb_compositor_layer_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_compositor.cc
diff --git a/ppapi/tests/test_compositor.cc b/ppapi/tests/test_compositor.cc
index e844e8dd4c957866b6abceaeb4e13b82f008eabf..ba2b5eda3f2ee7abeb00dba2abcc3fbe342c3757 100644
--- a/ppapi/tests/test_compositor.cc
+++ b/ppapi/tests/test_compositor.cc
@@ -122,7 +122,8 @@ std::string TestCompositor::TestBindUnbind() {
TestCompletionCallback texture_release_callback(instance_->pp_instance(),
PP_REQUIRED);
ASSERT_EQ(PP_OK_COMPLETIONPENDING,
- texture_layer.SetTexture(graphics_3d, texture, pp::Size(100, 100),
+ texture_layer.SetTexture(graphics_3d, GL_TEXTURE_2D, texture,
+ pp::Size(100, 100),
texture_release_callback.GetCallback()));
pp::ImageData image;
@@ -201,7 +202,8 @@ std::string TestCompositor::TestReleaseInternal(bool bind) {
TestCompletionCallback texture_release_callback(instance_->pp_instance(),
PP_REQUIRED);
ASSERT_EQ(PP_OK_COMPLETIONPENDING,
- texture_layer.SetTexture(graphics_3d, texture, pp::Size(100, 100),
+ texture_layer.SetTexture(graphics_3d, GL_TEXTURE_2D, texture,
+ pp::Size(100, 100),
texture_release_callback.GetCallback()));
pp::ImageData image;
@@ -265,7 +267,8 @@ std::string TestCompositor::TestReleaseWithoutCommitInternal(bool bind) {
TestCompletionCallback texture_release_callback(instance_->pp_instance(),
PP_REQUIRED);
ASSERT_EQ(PP_OK_COMPLETIONPENDING,
- texture_layer.SetTexture(graphics_3d, texture, pp::Size(100, 100),
+ texture_layer.SetTexture(graphics_3d, GL_TEXTURE_2D, texture,
+ pp::Size(100, 100),
texture_release_callback.GetCallback()));
pp::ImageData image;
@@ -347,7 +350,8 @@ std::string TestCompositor::TestGeneralInternal(bool bind) {
TestCompletionCallback texture_release_callback(instance_->pp_instance(),
PP_REQUIRED);
ASSERT_EQ(PP_OK_COMPLETIONPENDING,
- texture_layer.SetTexture(graphics_3d, texture, pp::Size(100, 100),
+ texture_layer.SetTexture(graphics_3d, texture, GL_TEXTURE_2D,
+ pp::Size(100, 100),
texture_release_callback.GetCallback()));
pp::ImageData image;
« no previous file with comments | « ppapi/shared_impl/compositor_layer_data.h ('k') | ppapi/thunk/ppb_compositor_layer_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698