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

Side by Side Diff: cc/output/context_provider.h

Issue 23601013: cc: Invalidate framebuffer contents when clearing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use arraysize. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/output/context_provider.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_OUTPUT_CONTEXT_PROVIDER_H_ 5 #ifndef CC_OUTPUT_CONTEXT_PROVIDER_H_
6 #define CC_OUTPUT_CONTEXT_PROVIDER_H_ 6 #define CC_OUTPUT_CONTEXT_PROVIDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 24 matching lines...) Expand all
35 bool map_image; 35 bool map_image;
36 bool map_sub; 36 bool map_sub;
37 bool post_sub_buffer; 37 bool post_sub_buffer;
38 bool set_visibility; 38 bool set_visibility;
39 bool shallow_flush; 39 bool shallow_flush;
40 bool swapbuffers_complete_callback; 40 bool swapbuffers_complete_callback;
41 bool texture_format_bgra8888; 41 bool texture_format_bgra8888;
42 bool texture_rectangle; 42 bool texture_rectangle;
43 bool texture_storage; 43 bool texture_storage;
44 bool texture_usage; 44 bool texture_usage;
45 bool discard_framebuffer;
45 46
46 CC_EXPORT Capabilities(); 47 CC_EXPORT Capabilities();
47 }; 48 };
48 // Returns the capabilities of the currently bound 3d context. 49 // Returns the capabilities of the currently bound 3d context.
49 virtual Capabilities ContextCapabilities() = 0; 50 virtual Capabilities ContextCapabilities() = 0;
50 51
51 // Ask the provider to check if the contexts are valid or lost. If they are, 52 // Ask the provider to check if the contexts are valid or lost. If they are,
52 // this should invalidate the provider so that it can be replaced with a new 53 // this should invalidate the provider so that it can be replaced with a new
53 // one. 54 // one.
54 virtual void VerifyContexts() = 0; 55 virtual void VerifyContexts() = 0;
(...skipping 25 matching lines...) Expand all
80 const MemoryPolicyChangedCallback& memory_policy_changed_callback) = 0; 81 const MemoryPolicyChangedCallback& memory_policy_changed_callback) = 0;
81 82
82 protected: 83 protected:
83 friend class base::RefCountedThreadSafe<ContextProvider>; 84 friend class base::RefCountedThreadSafe<ContextProvider>;
84 virtual ~ContextProvider() {} 85 virtual ~ContextProvider() {}
85 }; 86 };
86 87
87 } // namespace cc 88 } // namespace cc
88 89
89 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ 90 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698