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

Side by Side Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2188943002: Remove OutputSurfaceClient external clip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittests compile Created 4 years, 4 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2665 matching lines...) Expand 10 before | Expand all | Expand 10 after
2676 2676
2677 // OutputSurface implementation. 2677 // OutputSurface implementation.
2678 void SwapBuffers(CompositorFrame frame) override { did_swap_ = true; } 2678 void SwapBuffers(CompositorFrame frame) override { did_swap_ = true; }
2679 uint32_t GetFramebufferCopyTextureFormat() override { return 0; } 2679 uint32_t GetFramebufferCopyTextureFormat() override { return 0; }
2680 void Invalidate() override { invalidate_callback_.Run(); } 2680 void Invalidate() override { invalidate_callback_.Run(); }
2681 2681
2682 void OnDraw(bool resourceless_software_draw) { 2682 void OnDraw(bool resourceless_software_draw) {
2683 gfx::Transform identity; 2683 gfx::Transform identity;
2684 gfx::Rect empty_rect; 2684 gfx::Rect empty_rect;
2685 // SwapBuffers happens inside of OnDraw. 2685 // SwapBuffers happens inside of OnDraw.
2686 client_->OnDraw(identity, empty_rect, empty_rect, 2686 client_->OnDraw(identity, empty_rect, resourceless_software_draw);
2687 resourceless_software_draw);
2688 if (did_swap_) { 2687 if (did_swap_) {
2689 did_swap_ = false; 2688 did_swap_ = false;
2690 client_->DidSwapBuffersComplete(); 2689 client_->DidSwapBuffersComplete();
2691 } 2690 }
2692 } 2691 }
2693 2692
2694 private: 2693 private:
2695 bool did_swap_ = false; 2694 bool did_swap_ = false;
2696 base::Closure invalidate_callback_; 2695 base::Closure invalidate_callback_;
2697 }; 2696 };
(...skipping 4194 matching lines...) Expand 10 before | Expand all | Expand 10 after
6892 private: 6891 private:
6893 FakeContentLayerClient client_; 6892 FakeContentLayerClient client_;
6894 const gfx::Size viewport_size_; 6893 const gfx::Size viewport_size_;
6895 const gfx::Size large_image_size_; 6894 const gfx::Size large_image_size_;
6896 }; 6895 };
6897 6896
6898 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationSucceedsWithLargeImage); 6897 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationSucceedsWithLargeImage);
6899 6898
6900 } // namespace 6899 } // namespace
6901 } // namespace cc 6900 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698