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

Side by Side Diff: ui/compositor/layer.h

Issue 846063002: compositor: Fix texture flipping for SW mirroring with surfaceless (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add tests 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_COMPOSITOR_LAYER_H_ 5 #ifndef UI_COMPOSITOR_LAYER_H_
6 #define UI_COMPOSITOR_LAYER_H_ 6 #define UI_COMPOSITOR_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 const std::string& name() const { return name_; } 268 const std::string& name() const { return name_; }
269 void set_name(const std::string& name) { name_ = name; } 269 void set_name(const std::string& name) { name_ = name; }
270 270
271 // Set new TextureMailbox for this layer. Note that |mailbox| may hold a 271 // Set new TextureMailbox for this layer. Note that |mailbox| may hold a
272 // shared memory resource or an actual mailbox for a texture. 272 // shared memory resource or an actual mailbox for a texture.
273 void SetTextureMailbox(const cc::TextureMailbox& mailbox, 273 void SetTextureMailbox(const cc::TextureMailbox& mailbox,
274 scoped_ptr<cc::SingleReleaseCallback> release_callback, 274 scoped_ptr<cc::SingleReleaseCallback> release_callback,
275 gfx::Size texture_size_in_dip); 275 gfx::Size texture_size_in_dip);
276 void SetTextureSize(gfx::Size texture_size_in_dip); 276 void SetTextureSize(gfx::Size texture_size_in_dip);
277 void SetTextureFlipped(bool flipped);
278 bool TextureFlipped() const;
277 279
278 // Begins showing delegated frames from the |frame_provider|. 280 // Begins showing delegated frames from the |frame_provider|.
279 void SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider, 281 void SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider,
280 gfx::Size frame_size_in_dip); 282 gfx::Size frame_size_in_dip);
281 283
282 // Begins showing content from a surface with a particular id. 284 // Begins showing content from a surface with a particular id.
283 void SetShowSurface(cc::SurfaceId surface_id, 285 void SetShowSurface(cc::SurfaceId surface_id,
284 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback, 286 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback,
285 const cc::SurfaceLayer::RequireCallback& require_callback, 287 const cc::SurfaceLayer::RequireCallback& require_callback,
286 gfx::Size surface_size, 288 gfx::Size surface_size,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 521 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
520 // or SetTextureMailbox was called. 522 // or SetTextureMailbox was called.
521 gfx::Size frame_size_in_dip_; 523 gfx::Size frame_size_in_dip_;
522 524
523 DISALLOW_COPY_AND_ASSIGN(Layer); 525 DISALLOW_COPY_AND_ASSIGN(Layer);
524 }; 526 };
525 527
526 } // namespace ui 528 } // namespace ui
527 529
528 #endif // UI_COMPOSITOR_LAYER_H_ 530 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698