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

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

Issue 2270533002: cc: Remove the software compositing bool from PrepareTextureMailbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@softwarerendering
Patch Set: remove-prepare-mailbox-param: bad-merge Created 4 years, 3 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( 368 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList(
369 ContentLayerClient::PaintingControlSetting painting_control) override; 369 ContentLayerClient::PaintingControlSetting painting_control) override;
370 bool FillsBoundsCompletely() const override; 370 bool FillsBoundsCompletely() const override;
371 size_t GetApproximateUnsharedMemoryUsage() const override; 371 size_t GetApproximateUnsharedMemoryUsage() const override;
372 372
373 cc::Layer* cc_layer_for_testing() { return cc_layer_; } 373 cc::Layer* cc_layer_for_testing() { return cc_layer_; }
374 374
375 // TextureLayerClient 375 // TextureLayerClient
376 bool PrepareTextureMailbox( 376 bool PrepareTextureMailbox(
377 cc::TextureMailbox* mailbox, 377 cc::TextureMailbox* mailbox,
378 std::unique_ptr<cc::SingleReleaseCallback>* release_callback, 378 std::unique_ptr<cc::SingleReleaseCallback>* release_callback) override;
379 bool use_shared_memory) override;
380 379
381 float device_scale_factor() const { return device_scale_factor_; } 380 float device_scale_factor() const { return device_scale_factor_; }
382 381
383 // LayerClient 382 // LayerClient
384 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( 383 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(
385 cc::Layer* layer) override; 384 cc::Layer* layer) override;
386 void didUpdateMainThreadScrollingReasons() override; 385 void didUpdateMainThreadScrollingReasons() override;
387 386
388 // Whether this layer has animations waiting to get sent to its cc::Layer. 387 // Whether this layer has animations waiting to get sent to its cc::Layer.
389 bool HasPendingThreadedAnimationsForTesting() const; 388 bool HasPendingThreadedAnimationsForTesting() const;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 // The texture scale. 540 // The texture scale.
542 float texture_x_scale_; 541 float texture_x_scale_;
543 float texture_y_scale_; 542 float texture_y_scale_;
544 543
545 DISALLOW_COPY_AND_ASSIGN(Layer); 544 DISALLOW_COPY_AND_ASSIGN(Layer);
546 }; 545 };
547 546
548 } // namespace ui 547 } // namespace ui
549 548
550 #endif // UI_COMPOSITOR_LAYER_H_ 549 #endif // UI_COMPOSITOR_LAYER_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698