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

Side by Side Diff: ui/gfx/compositor/test_web_graphics_context_3d.h

Issue 9699125: Chromium implementation of discardBackbuffer WebGraphicsContext3D extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming extension for now, so its not mistaken for the standard one Created 8 years, 9 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
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_GFX_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef UI_GFX_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define UI_GFX_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define UI_GFX_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 WebKit::WGC3Dint level, 50 WebKit::WGC3Dint level,
51 WebKit::WGC3Dint xoffset, 51 WebKit::WGC3Dint xoffset,
52 WebKit::WGC3Dint yoffset, 52 WebKit::WGC3Dint yoffset,
53 WebKit::WGC3Dsizei width, 53 WebKit::WGC3Dsizei width,
54 WebKit::WGC3Dsizei height, 54 WebKit::WGC3Dsizei height,
55 WebKit::WGC3Denum format, 55 WebKit::WGC3Denum format,
56 WebKit::WGC3Denum type, 56 WebKit::WGC3Denum type,
57 WebKit::WGC3Denum access); 57 WebKit::WGC3Denum access);
58 virtual void unmapTexSubImage2DCHROMIUM(const void* data) {} 58 virtual void unmapTexSubImage2DCHROMIUM(const void* data) {}
59 virtual void setVisibilityCHROMIUM(bool visible) {} 59 virtual void setVisibilityCHROMIUM(bool visible) {}
60 virtual void discardFramebufferEXT(WebKit::WGC3Denum target,
61 WebKit::WGC3Dsizei numAttachments,
62 const WebKit::WGC3Denum* attachments) {}
63 virtual void ensureFramebufferCHROMIUM() {}
60 virtual void setMemoryAllocationChangedCallbackCHROMIUM( 64 virtual void setMemoryAllocationChangedCallbackCHROMIUM(
61 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM*) { } 65 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM*) { }
62 virtual WebKit::WebString getRequestableExtensionsCHROMIUM(); 66 virtual WebKit::WebString getRequestableExtensionsCHROMIUM();
63 virtual void requestExtensionCHROMIUM(const char*) {} 67 virtual void requestExtensionCHROMIUM(const char*) {}
64 virtual void blitFramebufferCHROMIUM(WebKit::WGC3Dint src_x0, 68 virtual void blitFramebufferCHROMIUM(WebKit::WGC3Dint src_x0,
65 WebKit::WGC3Dint src_y0, 69 WebKit::WGC3Dint src_y0,
66 WebKit::WGC3Dint src_x1, 70 WebKit::WGC3Dint src_x1,
67 WebKit::WGC3Dint src_y1, 71 WebKit::WGC3Dint src_y1,
68 WebKit::WGC3Dint dst_x0, 72 WebKit::WGC3Dint dst_x0,
69 WebKit::WGC3Dint dst_y0, 73 WebKit::WGC3Dint dst_y0,
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 private: 444 private:
441 scoped_refptr<gfx::GLContext> gl_context_; 445 scoped_refptr<gfx::GLContext> gl_context_;
442 scoped_refptr<gfx::GLSurface> gl_surface_; 446 scoped_refptr<gfx::GLSurface> gl_surface_;
443 447
444 DISALLOW_COPY_AND_ASSIGN(TestWebGraphicsContext3D); 448 DISALLOW_COPY_AND_ASSIGN(TestWebGraphicsContext3D);
445 }; 449 };
446 450
447 } // namespace ui 451 } // namespace ui
448 452
449 #endif // UI_GFX_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 453 #endif // UI_GFX_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698