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

Side by Side Diff: ui/gl/gl_image_stub.h

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 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
« no previous file with comments | « ui/gl/gl_image_memory.cc ('k') | ui/gl/gl_image_stub.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_GL_GL_IMAGE_STUB_H_ 5 #ifndef UI_GL_GL_IMAGE_STUB_H_
6 #define UI_GL_GL_IMAGE_STUB_H_ 6 #define UI_GL_GL_IMAGE_STUB_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ui/gl/gl_export.h" 10 #include "ui/gl/gl_export.h"
11 #include "ui/gl/gl_image.h" 11 #include "ui/gl/gl_image.h"
12 12
13 namespace gl { 13 namespace gl {
14 14
15 // A GLImage that does nothing for unit tests. 15 // A GLImage that does nothing for unit tests.
16 class GL_EXPORT GLImageStub : public GLImage { 16 class GL_EXPORT GLImageStub : public GLImage {
17 public: 17 public:
18 GLImageStub(); 18 GLImageStub();
19 19
20 // Overridden from GLImage: 20 // Overridden from GLImage:
21 void Destroy(bool have_context) override {} 21 void Destroy(bool have_context) override {}
22 gfx::Size GetSize() override; 22 gfx::Size GetSize() override;
23 unsigned GetInternalFormat() override; 23 unsigned GetInternalFormat() override;
24 bool BindTexImage(unsigned target, GLFence* fence) override; 24 bool BindTexImage(unsigned target, GLFence* fence) override;
25 void ReleaseTexImage(unsigned target) override {} 25 void ReleaseTexImage(unsigned target) override {}
26 bool CopyTexImage(unsigned target) override; 26 bool CopyTexImage(unsigned target) override;
27 bool CopyTexSubImage(unsigned target, 27 bool CopyTexSubImage(unsigned target,
28 const gfx::Point& offset, 28 const gfx::Point& offset,
29 const gfx::Rect& rect) override; 29 const gfx::Rect& rect) override;
30 bool CopySubImageData(unsigned texture_id,
31 const gfx::Point& offset,
32 const gfx::Rect& rect,
33 GLFence* in_fence,
34 GLFence* out_fence) override;
30 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 35 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
31 int z_order, 36 int z_order,
32 gfx::OverlayTransform transform, 37 gfx::OverlayTransform transform,
33 const gfx::Rect& bounds_rect, 38 const gfx::Rect& bounds_rect,
34 const gfx::RectF& crop_rect) override; 39 const gfx::RectF& crop_rect) override;
35 void Flush() override {} 40 void Flush() override {}
36 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 41 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
37 uint64_t process_tracing_id, 42 uint64_t process_tracing_id,
38 const std::string& dump_name) override {} 43 const std::string& dump_name) override {}
39 44
40 protected: 45 protected:
41 ~GLImageStub() override; 46 ~GLImageStub() override;
42 }; 47 };
43 48
44 } // namespace gl 49 } // namespace gl
45 50
46 #endif // UI_GL_GL_IMAGE_STUB_H_ 51 #endif // UI_GL_GL_IMAGE_STUB_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_memory.cc ('k') | ui/gl/gl_image_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698