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

Side by Side Diff: cc/debug/fake_web_graphics_context_3d.h

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Cosmetic fixes Created 7 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 585
586 virtual void setContextLostCallback( 586 virtual void setContextLostCallback(
587 WebGraphicsContextLostCallback* callback); 587 WebGraphicsContextLostCallback* callback);
588 588
589 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current, 589 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current,
590 WebKit::WGC3Denum other); 590 WebKit::WGC3Denum other);
591 591
592 virtual void drawBuffersEXT(WebKit::WGC3Dsizei m, 592 virtual void drawBuffersEXT(WebKit::WGC3Dsizei m,
593 const WebKit::WGC3Denum* bufs) {} 593 const WebKit::WGC3Denum* bufs) {}
594 594
595 virtual void bindTexImage2DCHROMIUM(WebKit::WGC3Denum target,
596 WebKit::WGC3Dint image_id) {}
597
598 // GL_CHROMIUM_gpu_memory_buffer
599 virtual WebKit::WGC3Duint createImageCHROMIUM(
600 WebKit::WGC3Dsizei width,
601 WebKit::WGC3Dsizei height) { return 0; }
602 virtual void destroyImageCHROMIUM(WebKit::WGC3Duint imageId) {}
reveman 2013/05/20 23:16:01 nit: image_id
kaanb 2013/05/21 00:52:29 Done.
603 virtual void getImageParameterivCHROMIUM(
604 WebKit::WGC3Duint imageId,
reveman 2013/05/20 23:16:01 nit: image_id
kaanb 2013/05/21 00:52:29 Done.
605 WebKit::WGC3Denum pname,
606 WebKit::WGC3Dint* params) {}
607 virtual void* mapImageCHROMIUM(
608 WebKit::WGC3Duint imageId,
reveman 2013/05/20 23:16:01 nit: image_id
kaanb 2013/05/21 00:52:29 Done.
609 WebKit::WGC3Denum access) { return 0; }
610 virtual void unmapImageCHROMIUM(WebKit::WGC3Duint imageId) {}
reveman 2013/05/20 23:16:01 nit: image_id
kaanb 2013/05/21 00:52:29 Done.
611
595 private: 612 private:
596 DISALLOW_COPY_AND_ASSIGN(FakeWebGraphicsContext3D); 613 DISALLOW_COPY_AND_ASSIGN(FakeWebGraphicsContext3D);
597 }; 614 };
598 615
599 } // namespace cc 616 } // namespace cc
600 617
601 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ 618 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698