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

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

Issue 1299713003: GLImage::OnMemoryDump Stubs + Some Impls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@images1.3
Patch Set: Fix android build. Created 5 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
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/gl_image_memory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MEMORY_H_ 5 #ifndef UI_GL_GL_IMAGE_MEMORY_H_
6 #define UI_GL_GL_IMAGE_MEMORY_H_ 6 #define UI_GL_GL_IMAGE_MEMORY_H_
7 7
8 #include "ui/gl/gl_image.h" 8 #include "ui/gl/gl_image.h"
9 9
10 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \ 10 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \
(...skipping 28 matching lines...) Expand all
39 const Rect& rect) override; 39 const Rect& rect) override;
40 void WillUseTexImage() override; 40 void WillUseTexImage() override;
41 void DidUseTexImage() override; 41 void DidUseTexImage() override;
42 void WillModifyTexImage() override {} 42 void WillModifyTexImage() override {}
43 void DidModifyTexImage() override {} 43 void DidModifyTexImage() override {}
44 bool ScheduleOverlayPlane(AcceleratedWidget widget, 44 bool ScheduleOverlayPlane(AcceleratedWidget widget,
45 int z_order, 45 int z_order,
46 OverlayTransform transform, 46 OverlayTransform transform,
47 const Rect& bounds_rect, 47 const Rect& bounds_rect,
48 const RectF& crop_rect) override; 48 const RectF& crop_rect) override;
49 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
50 uint64_t process_tracing_id,
51 const std::string& dump_name) override;
49 52
50 protected: 53 protected:
51 ~GLImageMemory() override; 54 ~GLImageMemory() override;
52 55
56 BufferFormat format() const { return format_; }
57
53 private: 58 private:
54 void DoBindTexImage(unsigned target); 59 void DoBindTexImage(unsigned target);
55 60
56 const Size size_; 61 const Size size_;
57 const unsigned internalformat_; 62 const unsigned internalformat_;
58 const unsigned char* memory_; 63 const unsigned char* memory_;
59 BufferFormat format_; 64 BufferFormat format_;
60 bool in_use_; 65 bool in_use_;
61 unsigned target_; 66 unsigned target_;
62 bool need_do_bind_tex_image_; 67 bool need_do_bind_tex_image_;
63 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \ 68 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \
64 defined(USE_OZONE) 69 defined(USE_OZONE)
65 unsigned egl_texture_id_; 70 unsigned egl_texture_id_;
66 EGLImageKHR egl_image_; 71 EGLImageKHR egl_image_;
67 #endif 72 #endif
68 73
69 DISALLOW_COPY_AND_ASSIGN(GLImageMemory); 74 DISALLOW_COPY_AND_ASSIGN(GLImageMemory);
70 }; 75 };
71 76
72 } // namespace gfx 77 } // namespace gfx
73 78
74 #endif // UI_GL_GL_IMAGE_MEMORY_H_ 79 #endif // UI_GL_GL_IMAGE_MEMORY_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/gl_image_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698