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

Side by Side Diff: cc/texture_copier.h

Issue 11358050: Remove most remaining webcore points and sizes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasedd Created 8 years, 1 month 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/layer_tree_test_common.cc ('k') | cc/texture_copier_unittest.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 TextureCopier_h 5 #ifndef TextureCopier_h
6 #define TextureCopier_h 6 #define TextureCopier_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/program_binding.h" 10 #include "cc/program_binding.h"
11 #include "cc/shader.h" 11 #include "cc/shader.h"
12 #include "IntSize.h"
13 #include "third_party/khronos/GLES2/gl2.h" 12 #include "third_party/khronos/GLES2/gl2.h"
13 #include "ui/gfx/size.h"
14 14
15 namespace WebKit { 15 namespace WebKit {
16 class WebGraphicsContext3D; 16 class WebGraphicsContext3D;
17 } 17 }
18 18
19 namespace cc { 19 namespace cc {
20 20
21 class TextureCopier { 21 class TextureCopier {
22 public: 22 public:
23 struct Parameters { 23 struct Parameters {
24 unsigned sourceTexture; 24 unsigned sourceTexture;
25 unsigned destTexture; 25 unsigned destTexture;
26 IntSize size; 26 gfx::Size size;
27 }; 27 };
28 // Copy the base level contents of |sourceTexture| to |destTexture|. Both te xture objects 28 // Copy the base level contents of |sourceTexture| to |destTexture|. Both te xture objects
29 // must be complete and have a base level of |size| dimensions. The color fo rmats do not need 29 // must be complete and have a base level of |size| dimensions. The color fo rmats do not need
30 // to match, but |destTexture| must have a renderable format. 30 // to match, but |destTexture| must have a renderable format.
31 virtual void copyTexture(Parameters) = 0; 31 virtual void copyTexture(Parameters) = 0;
32 virtual void flush() = 0; 32 virtual void flush() = 0;
33 33
34 virtual ~TextureCopier() { } 34 virtual ~TextureCopier() { }
35 }; 35 };
36 36
(...skipping 19 matching lines...) Expand all
56 GLuint m_positionBuffer; 56 GLuint m_positionBuffer;
57 scoped_ptr<BlitProgram> m_blitProgram; 57 scoped_ptr<BlitProgram> m_blitProgram;
58 bool m_usingBindUniforms; 58 bool m_usingBindUniforms;
59 59
60 DISALLOW_COPY_AND_ASSIGN(AcceleratedTextureCopier); 60 DISALLOW_COPY_AND_ASSIGN(AcceleratedTextureCopier);
61 }; 61 };
62 62
63 } 63 }
64 64
65 #endif 65 #endif
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/texture_copier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698