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

Side by Side Diff: cc/test/fake_output_surface_client.h

Issue 2188943002: Remove OutputSurfaceClient external clip (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: viewport -> viewport_size 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
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/trees/layer_tree_host_impl.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
7 7
8 #include "cc/output/managed_memory_policy.h" 8 #include "cc/output/managed_memory_policy.h"
9 #include "cc/output/output_surface_client.h" 9 #include "cc/output/output_surface_client.h"
10 10
(...skipping 17 matching lines...) Expand all
28 const gpu::TextureInUseResponses& responses) override {} 28 const gpu::TextureInUseResponses& responses) override {}
29 void ReclaimResources(const ReturnedResourceArray& resources) override {} 29 void ReclaimResources(const ReturnedResourceArray& resources) override {}
30 void DidLoseOutputSurface() override; 30 void DidLoseOutputSurface() override;
31 void SetExternalTilePriorityConstraints( 31 void SetExternalTilePriorityConstraints(
32 const gfx::Rect& viewport_rect_for_tile_priority, 32 const gfx::Rect& viewport_rect_for_tile_priority,
33 const gfx::Transform& transform_for_tile_priority) override {} 33 const gfx::Transform& transform_for_tile_priority) override {}
34 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 34 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
35 void SetTreeActivationCallback(const base::Closure&) override {} 35 void SetTreeActivationCallback(const base::Closure&) override {}
36 void OnDraw(const gfx::Transform& transform, 36 void OnDraw(const gfx::Transform& transform,
37 const gfx::Rect& viewport, 37 const gfx::Rect& viewport,
38 const gfx::Rect& clip,
39 bool resourceless_software_draw) override {} 38 bool resourceless_software_draw) override {}
40 39
41 int swap_count() { return swap_count_; } 40 int swap_count() { return swap_count_; }
42 41
43 bool did_lose_output_surface_called() { 42 bool did_lose_output_surface_called() {
44 return did_lose_output_surface_called_; 43 return did_lose_output_surface_called_;
45 } 44 }
46 45
47 const ManagedMemoryPolicy& memory_policy() const { return memory_policy_; } 46 const ManagedMemoryPolicy& memory_policy() const { return memory_policy_; }
48 47
49 private: 48 private:
50 int swap_count_; 49 int swap_count_;
51 bool did_lose_output_surface_called_; 50 bool did_lose_output_surface_called_;
52 ManagedMemoryPolicy memory_policy_; 51 ManagedMemoryPolicy memory_policy_;
53 }; 52 };
54 53
55 } // namespace cc 54 } // namespace cc
56 55
57 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 56 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698