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

Unified Diff: ui/compositor/layer.cc

Issue 846063002: compositor: Fix texture flipping for SW mirroring with surfaceless (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« content/browser/compositor/reflector_impl.cc ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 947cf6241dbf4adb4fe0e3ea67d2c15a60f9bd02..90930a8b981dbf36b1490e1460186859825b0ad3 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -557,6 +557,11 @@ void Layer::SetTextureSize(gfx::Size texture_size_in_dip) {
texture_layer_->SetNeedsDisplay();
}
+void Layer::SetTextureFlipped(bool flipped) {
+ DCHECK(texture_layer_.get());
+ texture_layer_->SetFlipped(flipped);
+}
+
void Layer::SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider,
gfx::Size frame_size_in_dip) {
DCHECK(type_ == LAYER_TEXTURED || type_ == LAYER_SOLID_COLOR);
« content/browser/compositor/reflector_impl.cc ('K') | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698