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

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

Issue 19267016: Add a flag to allow renderer to use software compositor when GL compositor doesn't work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_layer_tree_host_client.cc ('k') | cc/test/layer_tree_pixel_test.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 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 #include <vector> 5 #include <vector>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/test/layer_tree_test.h" 10 #include "cc/test/layer_tree_test.h"
(...skipping 10 matching lines...) Expand all
21 class PixelComparator; 21 class PixelComparator;
22 class SolidColorLayer; 22 class SolidColorLayer;
23 class TextureLayer; 23 class TextureLayer;
24 class TextureMailbox; 24 class TextureMailbox;
25 25
26 class LayerTreePixelTest : public LayerTreeTest { 26 class LayerTreePixelTest : public LayerTreeTest {
27 protected: 27 protected:
28 LayerTreePixelTest(); 28 LayerTreePixelTest();
29 virtual ~LayerTreePixelTest(); 29 virtual ~LayerTreePixelTest();
30 30
31 virtual scoped_ptr<OutputSurface> CreateOutputSurface() OVERRIDE; 31 virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) OVERRIDE;
32 virtual scoped_refptr<cc::ContextProvider> 32 virtual scoped_refptr<cc::ContextProvider>
33 OffscreenContextProviderForMainThread() OVERRIDE; 33 OffscreenContextProviderForMainThread() OVERRIDE;
34 virtual scoped_refptr<cc::ContextProvider> 34 virtual scoped_refptr<cc::ContextProvider>
35 OffscreenContextProviderForCompositorThread() OVERRIDE; 35 OffscreenContextProviderForCompositorThread() OVERRIDE;
36 36
37 virtual scoped_ptr<CopyOutputRequest> CreateCopyOutputRequest(); 37 virtual scoped_ptr<CopyOutputRequest> CreateCopyOutputRequest();
38 38
39 void ReadbackResult(scoped_ptr<CopyOutputResult> result); 39 void ReadbackResult(scoped_ptr<CopyOutputResult> result);
40 40
41 virtual void BeginTest() OVERRIDE; 41 virtual void BeginTest() OVERRIDE;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 Layer* readback_target_; 96 Layer* readback_target_;
97 base::FilePath ref_file_; 97 base::FilePath ref_file_;
98 scoped_ptr<SkBitmap> result_bitmap_; 98 scoped_ptr<SkBitmap> result_bitmap_;
99 std::vector<scoped_refptr<TextureLayer> > texture_layers_; 99 std::vector<scoped_refptr<TextureLayer> > texture_layers_;
100 int pending_texture_mailbox_callbacks_; 100 int pending_texture_mailbox_callbacks_;
101 }; 101 };
102 102
103 } // namespace cc 103 } // namespace cc
104 104
105 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_ 105 #endif // CC_TEST_LAYER_TREE_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_client.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698