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

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

Issue 16831004: Perform glReadPixels with PBOs in the gpu, if PBOs are available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cc_unittests Created 7 years, 5 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/output/gl_renderer.cc ('k') | cc/test/test_web_graphics_context_3d.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 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 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 virtual void setContextLostCallback( 104 virtual void setContextLostCallback(
105 WebGraphicsContextLostCallback* callback); 105 WebGraphicsContextLostCallback* callback);
106 106
107 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current, 107 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current,
108 WebKit::WGC3Denum other); 108 WebKit::WGC3Denum other);
109 109
110 // Takes ownership of the |callback|. 110 // Takes ownership of the |callback|.
111 virtual void signalSyncPoint(unsigned sync_point, 111 virtual void signalSyncPoint(unsigned sync_point,
112 WebGraphicsSyncPointCallback* callback); 112 WebGraphicsSyncPointCallback* callback);
113 virtual void signalQuery(WebKit::WebGLId query,
114 WebGraphicsSyncPointCallback* callback);
113 115
114 virtual void setSwapBuffersCompleteCallbackCHROMIUM( 116 virtual void setSwapBuffersCompleteCallbackCHROMIUM(
115 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback); 117 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback);
116 118
117 virtual void setMemoryAllocationChangedCallbackCHROMIUM( 119 virtual void setMemoryAllocationChangedCallbackCHROMIUM(
118 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback); 120 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback);
119 121
120 virtual void prepareTexture(); 122 virtual void prepareTexture();
121 virtual void finish(); 123 virtual void finish();
122 virtual void flush(); 124 virtual void flush();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 private: 258 private:
257 DISALLOW_COPY_AND_ASSIGN(Image); 259 DISALLOW_COPY_AND_ASSIGN(Image);
258 }; 260 };
259 ScopedPtrHashMap<unsigned, Image> images_; 261 ScopedPtrHashMap<unsigned, Image> images_;
260 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 262 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
261 }; 263 };
262 264
263 } // namespace cc 265 } // namespace cc
264 266
265 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 267 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698