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

Unified Diff: examples/surfaces_app/child_gl_impl.cc

Issue 783543003: Update from https://crrev.com/306901 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « crypto/p224_spake_unittest.cc ('k') | gpu/GLES2/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/surfaces_app/child_gl_impl.cc
diff --git a/examples/surfaces_app/child_gl_impl.cc b/examples/surfaces_app/child_gl_impl.cc
index fe4f23225187a480d2cfdbe41fbd231815d31211..8b8e942c147c13066383cebc4adcb1c79937cf88 100644
--- a/examples/surfaces_app/child_gl_impl.cc
+++ b/examples/surfaces_app/child_gl_impl.cc
@@ -158,17 +158,21 @@ void ChildGLImpl::Draw() {
TextureDrawQuad* texture_quad =
pass->CreateAndAppendDrawQuad<TextureDrawQuad>();
float vertex_opacity[4] = {1.0f, 1.0f, 0.2f, 1.0f};
+ const bool premultiplied_alpha = true;
+ const bool flipped = false;
+ const bool nearest_neighbor = false;
texture_quad->SetNew(pass->shared_quad_state_list.back(),
rect,
rect,
rect,
resource.id,
- true,
+ premultiplied_alpha,
gfx::PointF(),
gfx::PointF(1.f, 1.f),
SK_ColorBLUE,
vertex_opacity,
- false);
+ flipped,
+ nearest_neighbor);
scoped_ptr<DelegatedFrameData> delegated_frame_data(new DelegatedFrameData);
delegated_frame_data->render_pass_list.push_back(pass.Pass());
« no previous file with comments | « crypto/p224_spake_unittest.cc ('k') | gpu/GLES2/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698