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

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

Issue 865673003: Revert "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, 10 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
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
279 277
280 // Begins showing delegated frames from the |frame_provider|. 278 // Begins showing delegated frames from the |frame_provider|.
281 void SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider, 279 void SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider,
282 gfx::Size frame_size_in_dip); 280 gfx::Size frame_size_in_dip);
283 281
284 // Begins showing content from a surface with a particular id. 282 // Begins showing content from a surface with a particular id.
285 void SetShowSurface(cc::SurfaceId surface_id, 283 void SetShowSurface(cc::SurfaceId surface_id,
286 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback, 284 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback,
287 const cc::SurfaceLayer::RequireCallback& require_callback, 285 const cc::SurfaceLayer::RequireCallback& require_callback,
288 gfx::Size surface_size, 286 gfx::Size surface_size,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 // The size of the frame or texture in DIP, set when SetShowDelegatedContent 519 // The size of the frame or texture in DIP, set when SetShowDelegatedContent
522 // or SetTextureMailbox was called. 520 // or SetTextureMailbox was called.
523 gfx::Size frame_size_in_dip_; 521 gfx::Size frame_size_in_dip_;
524 522
525 DISALLOW_COPY_AND_ASSIGN(Layer); 523 DISALLOW_COPY_AND_ASSIGN(Layer);
526 }; 524 };
527 525
528 } // namespace ui 526 } // namespace ui
529 527
530 #endif // UI_COMPOSITOR_LAYER_H_ 528 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698