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

Unified Diff: ppapi/examples/compositor/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/cpp/compositor_layer.cc ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/compositor/compositor.cc
diff --git a/ppapi/examples/compositor/compositor.cc b/ppapi/examples/compositor/compositor.cc
index e7e3f1ffb0cc41bd8fdac576e881cb4a77e42d5a..d13e48a7c039bc914df919a22df81ff5fe644c51 100644
--- a/ppapi/examples/compositor/compositor.cc
+++ b/ppapi/examples/compositor/compositor.cc
@@ -351,7 +351,9 @@ void DemoInstance::PrepareLayers(int32_t frame) {
cube_->Draw();
rv = stable_texture_layer_.SetTexture(
*context_,
- texture, pp::Size(600, 600),
+ GL_TEXTURE_2D,
+ texture,
+ pp::Size(600, 600),
callback_factory_.NewCallback(&DemoInstance::OnTextureReleased,
texture));
assert(rv == PP_OK_COMPLETIONPENDING);
@@ -397,7 +399,11 @@ void DemoInstance::PrepareLayers(int32_t frame) {
GLuint texture = PrepareFramebuffer();
cube_->UpdateForTimeDelta(0.02f);
cube_->Draw();
- rv = texture_layer_.SetTexture(*context_, texture, pp::Size(400, 400),
+ rv = texture_layer_.SetTexture(
+ *context_,
+ GL_TEXTURE_2D,
+ texture,
+ pp::Size(400, 400),
callback_factory_.NewCallback(&DemoInstance::OnTextureReleased,
texture));
assert(rv == PP_OK_COMPLETIONPENDING);
« no previous file with comments | « ppapi/cpp/compositor_layer.cc ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698